Compartilhar via


PROPID_M_SENTTIME (Windows CE 5.0)

Send Feedback

This property indicates the date and time that the message was sent by the source Queue Manager.

  • Type Indicator
    VT_UI4 (or VT_NULL)
  • PROPVARIANT Field
    ulVal

Remarks

The PROPID_M_SENTTIME property is attached to the message by MSMQ. The time returned is the number of seconds elapsed since midnight (00:00:00), January 1, 1970 (Coordinated Universal time) according to the system clock.

To see when a message was sent, specify PROPID_M_SENTTIME in the MQMSGPROPS structure. Then call MQReceiveMessage and examine the returned value.

When specifying PROPID_M_SENTTIME, you can set its Type Indicator to VT_NULL. When the Type Indicator is set to VT_NULL, MSMQ sets the VT field to the appropriate type indicator.

Microsoft provides several time functions that can be used to manipulate the returned Coordinated Universal time value.

Examples

This example shows how PROPID_M_SENTTIME is specified in the MQMSGPROPS structure.

aMsgPropId[i] = PROPID_M_SENTTIME;           // Property ID
aMsgPropVar[i].vt = VT_UI4;                  // Type indicator
aMsgPropVar[i].ulVal = dwSentTime;        // Value
i++;

Requirements

OS Versions: Windows CE 2.0 and later. Versions prior to 2.12 require the MSMQ add-on pack.
Header: Mq.h.

See Also

MQReceiveMessage | PROPID_M_ARRIVEDTIME | MQMSGPROPS

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.