CLRES_V2_FUNCTION_TABLE_SET macro (resapi.h)
Initializes a function table for version 2.0 of the Resource API.
Syntax
void CLRES_V2_FUNCTION_TABLE_SET(
_Name,
_Version,
_Prefix,
_Arbitrate,
_Release,
_ResControl,
_ResTypeControl,
_LooksAlive,
_IsAlive,
_Cancel
);
Parameters
_Name
The name of the function table.
_Version
The version of the function table, such as CLRES_VERSION_V2_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.
_ResControl
The name of the ResourceControl entry point.
_ResTypeControl
The name of the ResourceTypeControl 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.
Return value
None
Remarks
The CLRES_V2_FUNCTION_TABLE_SET macro creates a function table for version 2.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 |
Target Platform | Windows |
Header | resapi.h |