Share via


MSMQMessage.SourceMachineGuid

 

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

The SourceMachineGuid property of the MSMQMessage object provides the identifier of the source computer that sent the message.

Data type: String (GUID format)
Run-time access: Read-only
Property SourceMachineGuid As String  

Property Value

A String that specifies the GUID of the source computer.

Remarks

SourceMachineGuid can be used by the receiving application when it needs to know the identifier of the computer that sent the message. For example, the receiving application can use the returned identifier to generate the name of the source computer using the MSMQApplication.MachineNameOfMachineId method.

The string returned by this property does not include the braces normally used with GUIDs. The format of the source computer GUID string is shown below

12345678-1234-1234-1234-123456789012  

Message Queuing COM components ignore any characters that follow the first Null character in a string without returning an error.

Equivalent API Function Property

With API function calls, the equivalent property is PROPID_M_SRC_MACHINE_ID.

Requirements

Windows NT/2000/XP: Included in Windows NT 4.0 SP3 and later.

Windows 95/98/Me: Included in Windows 95 and later.

Header: Declared in Mqoai.h.

Library: Use Mqoa.lib.

See Also

MSMQApplication.MachineNameOfMachineId
MSMQMessage
PROPID_M_SRC_MACHINE_ID