次の方法で共有


CLUSCTL_RESOURCE_NETNAME_VALIDATE_VCO control code

Confirms whether the security principal of the designated resource can be managed by the cluster. Applications use this control code as a parameter to the ClusterResourceControl function.

ClusterResourceControl( hResource,                             // resource handle
                        NULL,                                  // optional node handle (not used)
                        CLUSCTL_RESOURCE_NETNAME_VALIDATE_VCO, // control code
                        lpInBuffer,                            // input buffer: security principal name
                        nInBufferSize,                         // input buffer size
                        NULL,                                  // output buffer (not used)
                        0,                                     // output buffer size (not used)
                        NULL );                                // returned data size (not used)

Parameters

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

lpInBuffer

The name of the resource's security principal.

Return value

ClusterResourceControl returns one of the following values.

ERROR_SUCCESS

0

The operation completed successfully.

System error code

If any other value is returned, then the operation failed.

Remarks

ClusAPI.h defines the 32 bits of CLUSCTL_RESOURCE_NETNAME_VALIDATE_VCO (0x01000181) as follows:

Component Bit location Value
Object code 24 31 CLUS_OBJECT_RESOURCE (0x1)
Global bit 23 CLUS_NOT_GLOBAL (0x0)
Modify bit 22 CLUS_MODIFY (0x1)
User bit 21 CLCTL_CLUSTER_BASE (0x0)
Type bit 20 External (0x0)
Operation code 0 23 CLCTL_NETNAME_VALIDATE_VCO (0x181)
Access code 0 1 CLUS_ACCESS_READ (0x1)

For more information, see Control Code Architecture.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 Datacenter, Windows Server 2008 Enterprise
Header
ClusAPI.h

See also

External Resource Control Codes

Cluster Control Codes

ClusterResourceControl