CLRES_V4_FUNCTION_TABLE_SET macro (resapi.h)

Initializes a function table for version 4.0 of the Resource API.

Syntax

void CLRES_V4_FUNCTION_TABLE_SET(
   _Name,
   _Version,
   _Prefix,
   _Arbitrate,
   _Release,
   _BeginResCtrl,
   _BeginResTypeCtrl,
   _LooksAlive,
   _IsAlive,
   _Cancel,
   _BeginResCtrlAsUser,
   _BeginResTypeCtrlAsUser
);

Parameters

_Name

The name of the function table.

_Version

The version of the function table, such as CLRES_VERSION_V4_00.

_Prefix

The prefix that is appended to the front of each entry point name in the function table.

_Arbitrate

The name of the Arbitrate entry point.

_Release

The name of the Release entry point.

_BeginResCtrl

The name of the BeginResourceControl entry point.

_BeginResTypeCtrl

The name of the BeginResourceTypeControl entry point.

_LooksAlive

The name of the LooksAlive entry point.

_IsAlive

The name of the IsAlive entry point.

_Cancel

The name of the Cancel entry point.

_BeginResCtrlAsUser

The name of the BeginResourceControlAsUser entry point.

_BeginResTypeCtrlAsUser

The name of the BeginResourceTypeControlAsUser entry point.

Return value

None

Remarks

The CLRES_V4_FUNCTION_TABLE_SET macro creates a function table for version 4.0 of the Resource API using the version specified by the Version parameter and the label specified by the Name parameter. The actual names of the entry points are generated by combining the prefix specified in the Prefix parameter with the generic names as defined in the Resource API. For example, if Prefix is set to the string "FileShare", then the name of the Open function would be "FileShareOpen". The optional entry point functions may be set to NULL.

The resulting function table includes the following members.

Member Description
Prefix Name of the OpenV2 entry point.
Prefix Name of the Close entry point.
Prefix Name of the OnlineV2 entry point.
Prefix Name of the OfflineV2 entry point.
Prefix Name of the Terminate entry point.
 

To view the format of the function table, see the CLRES_FUNCTION_TABLE structure.

Requirements

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

See also

Failover Cluster Macros