Repairs the password for a security principal on a client based on the client's alternate computer name. Applications use this control code as a parameter to the ClusterResourceControl function.

ClusterResourceControl( hResource,     // resource handle
  hHostNode,                           // node handle
  CLUSCTL_RESOURCE_GET_FAILURE_INFO,   // this control code
  lpInBuffer,                          // input buffer
  cbInBufferSize,                      // input buffer size
  lpOutBuffer,                         // output buffer
  cbOutBufferSize,                     // output buffer
  lpBytesReturned );                   // resulting data size


The following control code function parameter is specific to this control code. For complete parameter descriptions, see ClusterResourceControl.

hResource [in]

A handle to the affected resource.

hHostNode [in, optional]

A handle to the node that is to perform the operation. If NULL, the node that owns the resource identified by the hResource parameter will perform the operation.

lpInBuffer [in, optional]

A pointer to the input buffer that contains the data for the operation, or NULL if no information is needed.

cbInBufferSize [in]

The allocated size of of the lpInBuffer parameter, in bytes.

lpOutBuffer [out, optional]

A pointer to the output buffer that receives the data retrieved by the operation, or NULL if no data will is retrieved.

cbOutBufferSize [in]

The allocated size of of the lpOutBuffer parameter, in bytes.

lpBytesReturned [out, optional]

The actual size of the data retrieved by the operation, in bytes.

Return value

ClusterResourceControl returns one of the following values.


0 (0x0)

The operation completed successfully. The lpBytesReturned parameter points to the actual size of the returned data.


234 (0xEA)

More data is available. The output buffer pointed to by lpOutBuffer was not large enough to hold the data resulting from the operation. The lpcbBytesReturned parameter points to the size required for the output buffer.


5015 (0x1397)

The node specified by the hNode parameter is not the node that owns the resource specified by the hResource parameter.

System error code

If any other value is returned, then the operation failed. The value of lpBytesReturned is unreliable.


ClusAPI.h defines the 32 bits of CLUSCTL_RESOURCE_NETNAME_REPAIR_VCO (0x0100018D) as follows (for more information, see Control Code Architecture).

ComponentBit locationValue
Object code24–31


Global bit23


Modify bit22


User bit21


Type bit20

External (0x0)

Operation code0–23


Access code0–1




Minimum supported client

None supported

Minimum supported server

Windows Server 2008 Enterprise, Windows Server 2008 Datacenter



See also

External Resource Control Codes