PROPID_QM_MACHINE_ID

The PROPID_QM_MACHINE_ID 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 format name of a private queue, a machine journal, or a dead letter queue.

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

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

Example

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

PropId = PROPID_QM_MACHINE_ID;         //PropId
    Variant.vt = VT_CLSID;                 //Type
    Variant.puuid = &guidMachineId;        //Value
    

For an example of using PROID_QM_MACHINE_ID, see:

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

MQGetMachineProperties