ResUtilGetResourceName function (resapi.h)
Returns the name of a resource. The PRESUTIL_GET_RESOURCE_NAME type defines a pointer to this function.
Syntax
DWORD ResUtilGetResourceName(
[in] HRESOURCE hResource,
[out] PWSTR pszResourceName,
[in, out] DWORD *pcchResourceNameInOut
);
Parameters
[in] hResource
Resource handle (see OpenClusterResource).
[out] pszResourceName
Pointer to a buffer that receives the resource name.
[in, out] pcchResourceNameInOut
On input, specifies the size of the buffer pointed to by pszResourceName, in wide characters. On output, specifies the actual size of the resource name returned as a count of wide characters.
Return value
If the operation succeeds, the function returns ERROR_SUCCESS.
If the operation fails, the function returns a system error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 Datacenter, Windows Server 2008 Enterprise |
Target Platform | Windows |
Header | resapi.h |
Library | ResUtils.lib |
DLL | ResUtils.dll |