GetCurrentClusterNodeId macro (clusapi.h)

Returns the unique identifier of the current cluster node.

Syntax

void GetCurrentClusterNodeId(
  [out]      _lpszNodeId_,
  [in, out]  _lpcchName_
);

Parameters

[out] _lpszNodeId_

This parameter points to a buffer that receives the unique ID of hNode, including the terminating NULL character.

[in, out] _lpcchName_

On input, pointer to the count of characters in the buffer pointed to by the lpszNodeId parameter, including the NULL terminator. On output, pointer to the count of characters stored in the buffer excluding the NULL terminator.

Return value

None

Remarks

Note that lpcchName refers to a count of characters and not a count of bytes, and that the returned size does not include the terminating NULL in the count. For more information on sizing buffers, see Data size conventions.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 Enterprise, Windows Server 2008 Datacenter
Target Platform Windows
Header clusapi.h

See also

GetClusterNodeId

Node Management Functions

OpenClusterNode