(Read-only, introduced in MSMQ 3.0.) The PROPID_MGMT_QUEUE_EOD_NO_ACK_COUNT property returns the number of messages sent from the computer to the queue for which no order acknowledgment has been received.
This property can return the following values:
Number of messages.
A 0 is returned if the applicable outgoing queue does not contain the requested information.
VT_NULL is returned if the queue is a local queue on the computer.
To retrieve the number of messages sent from the computer to the queue for which no order acknowledgment has been received, include PROPID_MGMT_QUEUE_EOD_NO_ACK_COUNT in an MQMGMTPROPS structure, call MQMgmtGetInfo, and then examine the value returned.
This property can be retrieved only for an active queue. MQMgmtGetInfo will return a non-specific error (MQ_ERROR) if your application attempts to retrieve this information for a queue that does not contain messages and is not opened by an application.
Equivalent COM Property
When using COM components, you can retrieve the number of messages sent from a computer to a queue for which no order acknowledgment has been received by examining the EodNoAckCount element of the MSMQCollection object returned by the MSMQOutgoingQueueManagement.EodGetSendInfo method.
aMgmtPropId[i] = PROPID_MGMT_QUEUE_EOD_NO_ACK_COUNT; // Property ID aMgmtPropVar[i].vt = VT_NULL; // Type indicator i++;