Export (0) Print
Expand All
Expand Minimize ApiSetNetworkName (Opnum 84)

(Protocol Version 2) The ApiSetNetworkName method sets the name of the cluster network represented by the hNetwork parameter to the string represented by the lpszNetworkName parameter. The nonvolatile cluster state associated with this cluster network is updated.

The server MUST fail this method by using error ERROR_OBJECT_ALREADY_EXISTS if the specified name is already the name or ID of a cluster network.

The server MUST accept an ApiSetNetworkName request for processing only if it is in the read/write state, as specified in section 3.1.1.

error_status_t ApiSetNetworkName(
  [in] HNETWORK_RPC hNetwork,
  [in, string] LPCWSTR lpszNetworkName

hNetwork: An HNETWORK_RPC context handle that was obtained in a previous ApiOpenNetwork method call.

lpszNetworkName: A pointer to a Unicode string that contains the new name of the cluster network.

Return Values: The method MUST return the following error codes for the specified conditions.

Return value/code Description




The data that is pointed to by the hNetwork parameter does not represent a valid HNETWORK_RPC context handle.


The name pointed to by the lpszNetworkName parameter MUST contain at least one character.


See the preceding text for when this error can occur.


The cluster network represented by the hNetwork parameter no longer exists in the nonvolatile cluster state.

For any other condition, the server MUST set Status to a value that is not one of the values listed in the preceding table. The client MUST treat all values that are not listed in the preceding table the same, except as specified in section

© 2014 Microsoft