ResUtilGetResourceName function

Returns the name of a resource. The PRESUTIL_GET_RESOURCE_NAME type defines a pointer to this function.

Syntax


DWORD WINAPI ResUtilGetResourceName(
  _In_    HRESOURCE hResource,
  _Out_   PWSTR     *pszResourceName,
  _Inout_ DWORD     *pcchResourceName
);

typedef DWORD (WINAPI *PRESUTIL_GET_RESOURCE_NAME)(
    _In_    HRESOURCE hResource,
    _Out_   PWSTR     *pszResourceName,
    _Inout_ DWORD     *pcchResourceName
);

Parameters

hResource [in]

Resource handle (see OpenClusterResource).

pszResourceName [out]

Pointer to a buffer that receives the resource name.

pcchResourceName [in, out]

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

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 Datacenter, Windows Server 2008 Enterprise

Header

ResApi.h

Library

ResUtils.lib

DLL

ResUtils.dll

 

 

Show: