ResUtilResourceTypesEqual function (resapi.h)
Tests whether a resource type matches the resource type name of a specified resource. The PRESUTIL_RESOURCE_TYPES_EQUAL type defines a pointer to this function.
Syntax
BOOL ResUtilResourceTypesEqual(
[in] LPCWSTR lpszResourceTypeName,
[in] HRESOURCE hResource
);
Parameters
[in] lpszResourceTypeName
Pointer to the resource type name to test.
[in] hResource
Handle of the resource to test.
Return value
If the resource types are equal, the function returns TRUE.
If the resource types are not equal, the function returns FALSE.
Remarks
The ResUtilResourceTypesEqual utility function compares the resource type name pointed to by lpszResourceTypeName with the resource type name of the resource identified by hResource. To perform the comparison, ResUtilResourceTypesEqual passes the CLUSCTL_RESOURCE_GET_RESOURCE_TYPE control code to the ClusterResourceControl function to retrieve the resource type. If the two resource type names are the same, the resource types are equal. Note that ResUtilResourceTypesEqual compares the resource type name and not the resource type display name.
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 Enterprise, Windows Server 2008 Datacenter |
Target Platform | Windows |
Header | resapi.h |
Library | ResUtils.lib |
DLL | ResUtils.dll |