ResUtilGetResourceNameDependencyEx function (resapi.h)

Enumerates the dependencies of a specified resource in the local cluster and returns a handle to a dependency of a specified resource type. The PRESUTIL_GET_RESOURCE_NAME_DEPENDENCY_EX type defines a pointer to this function.

Syntax

HRESOURCE ResUtilGetResourceNameDependencyEx(
  [in] LPCWSTR lpszResourceName,
  [in] LPCWSTR lpszResourceType,
  [in] DWORD   dwDesiredAccess
);

Parameters

[in] lpszResourceName

A null-terminated Unicode string that specifies the name of the dependent resource. This resource depends on one or more resources.

[in] lpszResourceType

A null-terminated Unicode string that specifies the resource type of the dependency to return.

[in] dwDesiredAccess

The requested access privileges. This might be any combination of GENERIC_READ (0x80000000), GENERIC_ALL (0x10000000), or MAXIMUM_ALLOWED (0x02000000). If this value is zero (0), an undefined error might be returned. Using GENERIC_ALL is the same as calling ResUtilGetResourceNameDependency.

Return value

If the operation succeeds, the function returns a handle to one of the resources on which the resource that is specified by lpszResourceName depends. The caller is responsible for closing the handle by calling CloseClusterResource.

If the operation fails, the function returns NULL. For more information, call the function GetLastError.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2012
Target Platform Windows
Header resapi.h
Library ResUtils.lib
DLL ResUtils.dll

See also

Resource Utility Functions