Compartir a través de


PROPID_QM_MACHINE_ID

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

MQGetMachineProperties
MQQMPROPS