3.2.4.11 Peeking a Message

The client MUST execute the following steps:

  • Invoke the rpc_ACReceiveMessageEx method with the following parameter values:

    • hQMContext := iOpenQueueContext.Context

    • ptb := CACTransferBufferV2 structure:

      • ptb.old.uTransferType := CACTB_RECEIVE (0x00000001)

      • ptb.old.Receive.Action := MQ_ACTION_PEEK_CURRENT (0x80000000); or, if a CursorIdentifier (section 3.2.1.3) ADM element instance is provided for ptb.old.Receive.Cursor, MQ_ACTION_PEEK_NEXT (0x80000001) is also acceptable. The behavior for these values is described in section 3.1.5.3.

      • The remainder of the fields MUST be populated according to the limitations and definitions in section 3.1.5.3.