PROPID_MGMT_MSMQ_BYTES_IN_ALL_QUEUES

 

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

(Read-only, introduced in MSMQ 3.0.) The PROPID_MGMT_MSMQ_BYTES_IN_ALL_QUEUES property returns the number of message bytes stored in all the queues on the computer.

Property ID

PROPID_MGMT_MSMQ_BYTES_IN_ALL_QUEUES

Type Indicator

VT_UI8

MQPROPVARIANT Field

uhVal.QuadPart

Property Value

An unsigned 64-bit integer containing the number of message bytes stored in all the queues on the computer. The uhVal member of the MQPROPVARIANT structure is a ULARGE_INTEGER union. The QuadPart member of this union stores a 64-bit unsigned integer of type ULONGLONG.

Remarks

To retrieve the number of message bytes stored in all the queues on the computer, include PROPID_MGMT_MSMQ_BYTES_IN_ALL_QUEUES in the MQMGMTPROPS structure, call MQMgmtGetInfo, and then examine the value returned.

Equivalent COM Property

When using COM components, you can retrieve the number of message bytes stored in all the queues on a computer using the MSMQApplication.BytesInAllQueues property.

Example Code

The following code fragment shows how PROPID_MGMT_MSMQ_BYTES_IN_ALL_QUEUES is specified in arrays that can be used to initialize an MQMGMTPROPS structure.

aMgmtPropID[i] = PROPID_MGMT_MSMQ_BYTES_IN_ALL_QUEUES;  // Property identifier  
aMgmtPropVar[i].vt = VT_NULL;                           // Type indicator  
i++;  

See Also

Management Properties
MQMgmtGetInfo
MSMQApplication.BytesInAllQueues