POPEN_V2_ROUTINE callback function

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

Syntax

POPEN_V2_ROUTINE PopenV2Routine;

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

Parameters

ResourceName

The name of the resource to open.

ResourceKey

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

ResourceHandle

The resource handle to pass to the SetResourceStatusEx callback function.

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

   
Windows version None supported Windows Server 2012
Target Platform Windows
Header resapi.h

See Also

Resource DLL Entry-Point Functions