CLRES_V1_FUNCTIONS

The CLRES_V1_FUNCTIONS structure contains pointers to all Resource API version 1.0 entry points except Startup. The CLRES_VI_FUNCTIONS structure is defined in RESAPI.H.

typedef struct _CLRES_V1_FUNCTIONS
    POPEN_ROUTINE         Open;
    PCLOSE_ROUTINE        Close;
    PONLINE_ROUTINE       Online;
    POFFLINE_ROUTINE      Offline;
    PTERMINATE_ROUTINE    Terminate;
    PLOOKS_ALIVE_ROUTINE  LooksAlive;
    PIS_ALIVE_ROUTINE     IsAlive;
    PARBITRATE_ROUTINE    Arbitrate;
    PRELEASE_ROUTINE      Release;
    PRESOURCE_CONTROL_ROUTINE ResourceControl;
    PRESOURCE_TYPE_CONTROL_ROUTINE ResourceTypeControl
} CLRES_V1_FUNCTIONS, *PCLRES_V1_FUNCTIONS;
 

Members

Open
Pointer to the Open entry point.
Close
Pointer to the Close entry point.
Online
Pointer to the Online entry point.
Offline
Pointer to the Offline entry point.
Terminate
Pointer to the Terminate entry point.
LooksAlive
Pointer to the LooksAlive entry point.
IsAlive
Pointer to the IsAlive entry point.
Arbitrate
Pointer to the Arbitrate entry point.
Release
Pointer to the Release entry point.
ResourceControl
Pointer to the ResourceControl entry point.
ResourceTypeControl
Pointer to the ResourceTypeControl entry point.

Remarks

The CLRES_V1_FUNCTIONS structure is the function table that is returned by the Startup function in Resource API 1.0. All function pointers must be non-NULL except for these Resource API entry points:

Only the first two members are guaranteed to be at the same offset within the CLRES_FUNCTION_TABLE structure. All other entries within this structure are dependent on which Resource API interface version is supported.

To create a function table for version 1.0 of the Resource API, use the CLRES_V1_FUNCTION_TABLE macro.

QuickInfo

  Version: Use Windows NT Server Enterprise Edition 4.0.
  Windows CE: Unsupported.
  Header: Declared in resapi.h.