Share via


ITmNodeName::GetNodeName

 

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 GetNodeName method gets the node name that specifies the location of the transaction manager used by the DTC proxy.

  
HRESULT GetNodeName (   ULONG   
cbNodeNameBufferSize  
,   LPWSTR   
pNodeNameBuffer   
);  
  

Parameters

cbNodeNameBufferSize
[in] The number of bytes available for storage in pNodeNameBuffer.

pNodeNameBuffer
[in, out] The buffer in which to store the node name.

Return Values

S_OK
Success.

E_UNEXPECTED
Unexpected error encountered.

E_INVALIDARG
One or more arguments are invalid.

E_FAIL
Failed to carry out the operation.

Remarks

Call ITmNodeName::GetNodeNameSize to get the length, in bytes, of the node name that will be returned by GetNodeName. This value can then be passed to GetNodeName in the cbNodeNameBufferSize parameter.

Requirements

For an explanation of the requirement values, see Requirements (COM).

Platforms: Windows Server 2016, Windows 10, Windows Server 2012 R2, Windows 8.1, Windows Server 2012, Windows 8, Windows Server 2008 R2, Windows 7, Windows Server 2008, Windows Vista

Header: Declared in txdtc.h.

Library: msdtcprx.dll.

See Also

ITmNodeName::GetNodeNameSize