PCLUSAPI_CLUS_WORKER_TERMINATE callback function (resapi.h)
Terminates a worker thread. The PCLUSAPI_CLUS_WORKER_TERMINATE type defines a pointer to this function.
Syntax
PCLUSAPI_CLUS_WORKER_TERMINATE PclusapiClusWorkerTerminate;
void PclusapiClusWorkerTerminate(
[in] PCLUS_WORKER lpWorker
)
{...}
Parameters
[in] lpWorker
Pointer to a CLUS_WORKER structure describing the thread to terminate.
Return value
None
Remarks
The ClusWorkerTerminate utility function checks the hThread and Terminate members of the CLUS_WORKER structure pointed to by lpWorker. If hThread is not NULL and Terminate is set to FALSE, indicating that this is your first call to ClusWorkerTerminate, the function waits for the thread to exit before returning. Otherwise, if you have called ClusWorkerTerminate previously, indicated by Terminate being set to TRUE, the function may return before the thread has terminated.
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 Enterprise, Windows Server 2008 Datacenter |
Target Platform | Windows |
Header | resapi.h |