PROPID_Q_JOURNAL_QUOTA

Optional. The PROPID_Q_JOURNAL_QUOTA property specifies the maximum size (in kilobytes) of the journal queue.

Type Indicator
VT_UI4
PROPVARIANT Field
ulVal
Property Values
Size (in kilobytes) of the journal queue (the default is INFINITE).

Remarks

To set the maximum size of a journal queue when creating the application queue, specify PROPID_Q_JOURNAL_QUOTA in the MQQUEUEPROPS structure and call MQCreateQueue.

To change the size of a journal queue, specify PROPID_Q_JOURNAL_QUOTA in the MQQUEUEUPROPS structure and call MQSetQueueProperties.

To retrieve the size of a journal queue, specify PROPID_Q_JOURNAL_QUOTA in the MQQUEUEPROPS structure and call MQGetQueueProperties and examine its returned value.

Example

This example shows how PROPID_Q_JOURNAL_QUOTA is specified in the MQQUEUEPROPS structure for both setting and retrieving the maximum size of the journal queue.

//To set the maximum size of the journal queue
aPropID[i] = PROPID_Q_JOURNAL_QUOTA;  // Property identifier
aVariant[i].vt = VT_UI4;              // Type indicator
aVariant[i].ulVal = 1000;             // Maximum size of journal queue
i++

//To retrieve the maximum size of the journal queue
aPropID[i] = PROPID_Q_JOURNAL_QUOTA;  // Property identifier
aVariant[i].vt = VT_UI4;              // Type indicator
i++
 
For complete examples of… See…
Creating a public or private queue Creating a Queue
Retrieving the maximum size of the journal queue Retrieving PROPID_Q_JOURNAL_QUOTA

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

MQCreateQueue, MQGetQueueProperties, MQSetQueueProperties, PROPID_Q_JOURNAL