The CLUSCTL_RESOURCE_GET_FLAGS resource control code retrieves the flags associated with the designated resource. Flags are used to identify the specific attributes and/or capabilities that are provided by the resource. If the resource has multiple attributes and/or capabilities, the server MUST indicate each attribute and/or capability by setting a value for each attribute and/or capability.
After the successful completion of this method, the server MUST calculate the bitwise OR operator of the values of a CLUS_FLAGS enumeration as well as any other undefined flag values that are appropriate for the designated resource. The server MUST write the result to the buffer designated by lpOutBuffer.
For protocol version 3.0, if the size indicated by nOutBufferSize is less than the number of bytes that are required for lpOutBuffer and if nOutBufferSize is 0x00000000, then the server MUST return ERROR_SUCCESS (0x00000000).
The server SHOULD accept a CLUSCTL_RESOURCE_GET_FLAGS resource control code request if its protocol server state is read-only, and the server MUST accept the request for processing if it is in the read/write state, as specified in section 3.1.1.