PROPID_Q_CREATE_TIME
A version of this page is also available for
4/8/2010
Optional read-only. This property indicates the time and date when the queue was created.
- Type Indicator
VT_I4
- PROPVARIANT Field
lVal
- Property Values
Time when the queue was created.
Remarks
This property is set by MSMQ when MQCreateQueue is called.
An error is returned (MQ_ERROR_PROPERTY_NOTALLOWED) if an attempt is made to set this property.
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 retrieve the date and time a queue was created, specify PROPID_Q_CREATE_TIMEin the MQQUEUEPROPS structure and call MQGetQueueProperties and examine its returned value.
Examples
This example shows how PROPID_Q_CREATE_TIMEis specified in the MQQUEUEPROPS structure for retrieving the date and time when the queue was created.
aPropID[i] = PROPID_Q_CREATE_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 |