Failover Cluster Macros

The Failover Cluster API provides the following macros, which you can use to work with data structures and property lists.

In this section

ALIGN_CLUSPROP

Aligns structures properly within value lists.

CLRES_V1_FUNCTION_TABLE

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

CLRES_V2_FUNCTION_TABLE_SET

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

CLRES_V3_FUNCTION_TABLE_SET

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

CLRES_V4_FUNCTION_TABLE_SET

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

CLUSCTL_GET_ACCESS_MODE

Extracts the access code from a control code. For more information on the various codes that comprise a control code, see Control Code Architecture.

CLUSCTL_GET_CONTROL_FUNCTION

Extracts the operation code from a control code. For more information on the various codes that comprise a control code, see Control Code Architecture.

CLUSCTL_GET_CONTROL_OBJECT

Extracts the object code from a control code. For more information on the various codes that comprise a control code, see Control Code Architecture.

CLUSCTL_GET_USER

Retrieves the user bit from a control code. For more information, see Control Code Architecture.

CLUSCTL_USER_CODE

Generates a correctly formatted user-defined control code. For more information on the bit layout of control codes, see Control Code Architecture.

CLUSPROP_BINARY_DECLARE

Creates a CLUSPROP_BINARY structure with the rgb member set to a size determined by the caller.

CLUSPROP_PROPERTY_NAME_DECLARE

Creates a CLUSPROP_PROPERTY_NAME structure with the sz member set to a size determined by the caller.

CLUSPROP_SZ_DECLARE

Creates a CLUSPROP_SZ structure with the sz member set to a size determined by the caller.

CLUSTER_GET_MAJOR_VERSION

Extracts the major version portion of a Cluster service version number.

CLUSTER_GET_MINOR_VERSION

Extracts the minor version portion of a Cluster service version number.

CLUSTER_GET_UPGRADE_VERSION

Extracts the upgrade version portion of a Cluster service version number.

CLUSTER_MAKE_VERSION

Creates a Cluster service version number.

Failover Cluster Reference