3.1.4.1.28 ApiDeleteResourceType (Opnum 27)

(Protocol Version 2) The ApiDeleteResourceType method removes the designated resource type from the cluster configuration. The nonvolatile cluster state associated with this resource is updated.

The server fails this method using error ERROR_DIR_NOT_EMPTY if one or more resources of this type exist in the cluster configuration.

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

 error_status_t ApiDeleteResourceType(
   [in, string] const wchar_t * lpszTypeName
 );

lpszTypeName: A pointer to a Unicode string buffer that uniquely specifies the name of the resource type to delete.

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

Return value/code

Description

0x00000000

ERROR_SUCCESS

Success.

0x00000091

ERROR_DIR_NOT_EMPTY

See the preceding text for when this error can occur.

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 3.2.4.6.