PROPID_Q_JOURNAL_QUOTA

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

  • 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.

Examples

The following examples show how PROPID_Q_JOURNAL_QUOTA is specified in the MQQUEUEPROPS structure for 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++;

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.0 and later. Versions prior to 2.12 require the MSMQ add-on pack. Mq.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

MQCreateQueue, MQGetQueueProperties, MQSetQueueProperties, MQQUEUEPROPS

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.