ResUtilResourceTypesEqual function

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 WINAPI ResUtilResourceTypesEqual(
  _In_  LPCWSTR lpszResourceTypeName,
  _In_  HRESOURCE hResource
);

typedef BOOL (WINAPI *PRESUTIL_RESOURCE_TYPES_EQUAL)(
    _In_  LPCWSTR lpszResourceTypeName,
    _In_  HRESOURCE hResource
);

Parameters

lpszResourceTypeName [in]

Pointer to the resource type name to test.

hResource [in]

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

Minimum supported client

None supported

Minimum supported server

Windows Server 2003 Enterprise, Windows Server 2003 Datacenter

Header

ResApi.h

Library

ResUtils.lib

DLL

ResUtils.dll

See also

CLUSCTL_RESOURCE_GET_RESOURCE_TYPE
ClusterResourceControl

 

 

Show:
© 2015 Microsoft