Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/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 MQCreateQueueis 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 MQQUEUEPROPSstructure; then call MQGetQueuePropertiesand 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 MQQUEUEPROPSstructure for retrieving the date and time when the properties of the queue were last modified.

Copy Code
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
Windows Mobile Windows Mobile Version 5.0 and later

See Also