PROPID_M_SENTTIME

The PROPID_M_SENTTIME 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, pass PROPID_M_SENTTIME to MQReceiveMessage, and examine the returned value. When passing PROPID_M_SENTTIME to MQReceiveMessage, the corresponding VT field in the aPropVar array can be set to VT_NULL.

For information on how to find out when the message arrived at the target queue, see PROPID_M_ARRIVEDTIME.

QuickInfo

  Windows NT: Requires version 4.0 SP3 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in mq.h.
  Import Library: Use mqrt.lib.
  Unicode: Defined only as Unicode.

See Also

MQReceiveMessage, PROPID_M_ARRIVEDTIME