Implementing Pending Operations
The following steps are all required:
To Implement a Pending Operation
- In your Online or Offline entry point function, call ClusWorkerCreate to start a worker thread and return ERROR_IO_PENDING immediately.
- Have the thread perform the necessary online or offline tasks.
- Periodically call ClusWorkerCheckTerminate to see if the Terminate entry point function has been called.
- Use the SetResourceStatus function pointer obtained from the Startup entry point function to report status information to the Resource Monitor.