Implementing ResourceTypeControl

The Cluster service (through a Resource Monitor) invokes the ResourceTypeControl entry point function when:

In both cases, a control code is passed to the resource DLL as an input parameter. The DLL can implement the control code operation, instruct the Resource Monitor to handle the operation, or both.

Some control codes should be handled by the Resource Monitor; others require or benefit from customized implementation in the DLL. Support for any of the other control codes is optional. To determine how and why to support a particular control code, see Control Codes.

To request that the Resource Monitor process a control code, return ERROR_INVALID_FUNCTION. You can return this value for a control code even if you include support for the code in ResourceTypeControl, allowing you to augment the default functionality of the Resource Monitor.

As with all entry point functions, follow the Recommended Practices for Resource DLLs.

Example

See Resource DLL Examples.