POPEN_V2_ROUTINE callback function (resapi.h)

Opens a resource. The POPEN_V2_ROUTINE type defines a pointer to this function.

Syntax

POPEN_V2_ROUTINE PopenV2Routine;

RESID PopenV2Routine(
  [in]      LPCWSTR ResourceName,
  [in]      HKEY ResourceKey,
  [in]      RESOURCE_HANDLE ResourceHandle,
  [in] [in] DWORD OpenFlags
)
{...}

Parameters

[in] ResourceName

The name of the resource to open.

[in] ResourceKey

The cluster database key for the cluster that includes the resource represented by ResourceName.

[in] ResourceHandle

The resource handle to pass to the SetResourceStatusEx callback function.

[in] [in] OpenFlags

One of the following flags:

0x0

TBD

CLUS_RESDLL_OPEN_RECOVER_MONITOR_STATE (0x00000001)

TBD

Return value

If the operation was successful, returns a resource identifier (RESID).

If the operation was not successful, returns NULL. Call SetLastError to specify that an error has occurred.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows ServerĀ 2012
Target Platform Windows
Header resapi.h

See also

Resource DLL Entry-Point Functions