Share via


PROPID_Q_MODIFY_TIME (Windows Embedded CE 6.0)

1/6/2010

Optional. This property indicates the last time the properties of a queue were modified.

  • Type Indicator
    VT_I4
  • PROPVARIANT Field
    lVal
  • Property Values
    Time at which the properties of the queue were last set.

Remarks

The PROPID_Q_MODIFY_TIMEproperty is set by MSMQ when MQCreateQueue is called and is then reset by MSMQ each time the properties of the queue are modified by calls to MQSetQueueProperties.

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

To retrieve the date and time at which the queue properties were last modified, specify PROPID_Q_MODIFY_TIME in the MQQUEUEPROPS structure; then call MQGetQueueProperties and examine its returned value.

An MQ_ERROR_PROPERTY_NOTALLOWED error is returned if an attempt is made to set this property.

Examples

This example shows how PROPID_Q_MODIFY_TIMEis specified in the MQQUEUEPROPS structure for retrieving the date and time when the properties of the queue were last modified.

aPropID[i] = PROPID_Q_MODIFY_TIME;    // Property identifier
aVariant[i].vt = VT_I4;               // Type indicator
i++;

Note

OS versions prior to 2.12 require the MSMQ add-on pack.

Requirements

Header mq.h
Windows Embedded CE Windows CE 2.0 and later

See Also

Reference

MSMQ Properties
MQCreateQueue
MQGetQueueProperties
MQSetQueueProperties
MQQUEUEPROPS