PROPID_QM_MACHINE_ID (Compact 2013)

3/26/2014

This property identifies the computer.

  • Type Indicator
    VT_CLSID
  • PROPVARIANT Field
    *puuid
  • Property Values
    Machine GUID.

Remarks

The PROPID_QM_MACHINE_ID property is set by MSMQ when the computer is defined.

It is used when specifying the following:

  • The format name of a private queue
  • A machine journal
  • A dead-letter queue

To determine the identifier of the machine, pass PROPID_QM_MACHINE_ID to MQGetMachineProperties and examine its returned value.

For dependent clients, MSMQ sets this property to the identifier of the client's server computer.

Examples

This example shows how PROPID_QM_MACHINE_ID is specified in the MQQMPROPS structure.

aQMPropId[I] = PROPID_QM_MACHINE_ID;         // Property identifier
aQMPropVar[I].vt = VT_CLSID;                 // Type indicator
aQMPropVar[I].puuid = &guidMachineId;        // Machine ID buffer

Note

OS versions prior to 2.12 require the MSMQ add-on pack.

Requirements

Header

mq.h

See Also

Reference

MSMQ Properties
MQGetMachineProperties
MQQMPROPS