PWORKER_START_ROUTINE callback function (resapi.h)
Initializes a worker thread with the specified callback routine. The PWORKER_START_ROUTINE type defines a pointer to this function.
Syntax
PWORKER_START_ROUTINE PworkerStartRoutine;
DWORD PworkerStartRoutine(
[in] PCLUS_WORKER pWorker,
[in] LPVOID lpThreadParameter
)
{...}
Parameters
[in] pWorker
A pointer to the CLUS_WORKER structure that represents the worker thread.
[in] lpThreadParameter
A pointer to the callback routine to use to initialize the worker thread.
Return value
Returns ERROR_SUCCESS (0), if the operation succeeds; otherwise returns a system error code.
Remarks
The pointer to this callback function is used as an input parameter for the ClusWorkerCreate function.
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 Datacenter, Windows Server 2008 Enterprise |
Target Platform | Windows |
Header | resapi.h |