CLRES_V3_FUNCTION_TABLE_SET macro (resapi.h)

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

Syntax

void CLRES_V3_FUNCTION_TABLE_SET(
   _Name,
   _Version,
   _Prefix,
   _Arbitrate,
   _Release,
   _BeginResourceControl,
   _BeginResourceTypeControl,
   _LooksAlive,
   _IsAlive,
   _Cancel
);

Parameters

_Name

The name of the function table.

_Version

The version of the function table, such as CLRES_VERSION_V3_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.

_BeginResourceControl

The name of the BeginResourceControl entry point.

Windows Server 2012 R2:  Not supported.

_BeginResourceTypeControl

The name of the BeginResourceTypeControl entry point.

Windows Server 2012 R2:  This parameter was added in Windows Server 2016.

_LooksAlive

The name of the LooksAlive entry point.

_IsAlive

The name of the IsAlive entry point.

_Cancel

The name of the Cancel entry point.

Return value

None

Remarks

The CLRES_V3_FUNCTION_TABLE_SET macro creates a function table for version 3.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 2012 R2
Target Platform Windows
Header resapi.h

See also

Failover Cluster Macros