共用方式為


Instance Data

Your resource DLL must maintain a set of data for each instance that identifies and describes the instance and its current configuration, and that associates the instance with handles and other objects. At minimum, your resource DLL must maintain the following data items for each instance:

  1. Resource identifier.
  2. Resource name.
  3. The Resource Monitor's handle to the instance, which is used to identify the instance in the LogEvent and SetResourceStatus callback functions.
  4. The cluster database subkey defined for the resource.
  5. The current state of the resource.

A resource structure should be created to meet these requirements. It is recommended that you maintain a similar set of data for each instance.

For more information on instance management, see Implementing Instance Management.

Managing Instances