Share via


MSMQMessage.SourceMachineGuid (Windows CE 5.0)

Send Feedback

This read-only property provides the identifier of the source computer that sent the message.

HRESULT get_SourceMachineGuid( BSTR* pbstrGuidSrcMachine);

Parameters

  • pbstrGuidSrcMachine
    String that includes the GUID of the source computer.

Return Values

The following table describes the common return values.

Value Description
S_OK Success
E_INVALIDARG One or more arguments are invalid
E_NOTIMPL The function contains no implementation
E_OUTOFMEMORY Out of memory

Remarks

MSMQMessage.SourceMachineGuid can be used by the receiving application when it needs to know the identifier of the computer that sent the message.

Format of returned identifier

The string returned by this property does not include the braces normally used with GUIDs. The format of the source machine GUID string is as follows.

12345678-1234-1234-1234-123456789012

Null characters in strings

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

Equivalent Function property

When using functions, the identifier of the source computer can be set and retrieved using the PROPID_M_SRC_MACHINE_ID property.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Mqoai.h.
Link Library: Mqoa.lib.

See Also

MSMQMessage | PROPID_M_SRC_MACHINE_ID

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.