The MQGetMachineProperties function retrieves information about a Queue Manager computer.
HRESULT APIENTRY MQGetMachineProperties(
LPCWSTR lpwcsMachineName,
GUID pguidMachineID,
MQQMPROPS pQMProps
);
If lpwcsMachineName and pguidMachineID are set to NULL, the properties of the local computer are retrieved.
Valid Queue Manager properties are:
If a property specified by pQMProps is set to VT_NULL, MSMQ allocates the memory needed to store the property value when MQGetMachineProperties is called. However, when the returned property type replaces the VT_NULL value, the application must still free the memory allocated for the property value by calling MQFreeMemory.
Machine properties cannot be retrieved if there is no connection to Active Directory. This restriction applies to dependent client computers, independent client computers that are working offline, and MSMQ routing servers (FRS). (For information on offline operations, see MSMQ Offline Support.)
For an example of using MQGetMachineProperties, see:
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.
PROPID_QM_CONNECTION, PROPID_QM_ENCRYPTION_PK, PROPID_QM_MACHINE_ID, PROPID_QM_PATHNAME, PROPID_QM_SITE_ID, MQFreeMemory