PSTARTUP_EX_ROUTINE callback function (resapi.h)

Loads a resource DLL, returning a structure that contains a function table and a version number. The PSTARTUP_EX_ROUTINE type defines a pointer to this function.

Syntax

PSTARTUP_EX_ROUTINE PstartupExRoutine;

DWORD PstartupExRoutine(
  [in]        LPCWSTR ResourceType,
  [in]        DWORD MinVersionSupported,
  [in]        DWORD MaxVersionSupported,
  [in] [in]   PCLRES_CALLBACK_FUNCTION_TABLE MonitorCallbackFunctions,
  [out] [out] PCLRES_FUNCTION_TABLE *ResourceDllInterfaceFunctions
)
{...}

Parameters

[in] ResourceType

The type of resource to start.

[in] MinVersionSupported

The minimum version of the Resource API supported by the Cluster service.

[in] MaxVersionSupported

The maximum version of the Resource API supported by the Cluster service.

[in] [in] MonitorCallbackFunctions

TBD

[out] [out] ResourceDllInterfaceFunctions

TBD

Return value

Return code/value Description
ERROR_SUCCESS
0
The request was successful.
ERROR_REVISION_MISMATCH
1306 (0x51A)
The resource DLL does not support a version that falls in the range identified by the MinVersionSupported and MaxVersionSupported parameters.

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