Implementing Open

The Cluster service calls the Open entry point function (through a Resource Monitor) to create a new instance of a resource type. Your resource DLL should initialize an actual instance of the physical or logical entity to be supported as the resource and associate it with a set of instance data. Open can also lay groundwork for the Online entry point.

To implement Open

  1. Optional: Enforce limits on the number of concurrent instances allowed. It is recommended that you use a synchronization object such as a semaphore to synchronize instance counts.
  2. Required: Generate and save the required instance data for the new instance. See Implementing Instance Management.
  3. Required: Create or initialize an actual instance of the physical or logical entity to be supported as a resource. Make sure it is in an offline state.
  4. Optional: Perform configuration tasks such as establishing registry and crypto key checkpoints. See Checkpointing.
  5. Recommended: For optimal performance, return a value within 300 milliseconds.

Example

See Resource DLL Examples.