PWORKER_START_ROUTINE callback function

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(
  PCLUS_WORKER pWorker,
  LPVOID lpThreadParameter
)
{...}

Parameters

pWorker

A pointer to the CLUS_WORKER structure that represents the worker thread.

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

   
Windows version None supported Windows Server 2008 Datacenter, Windows Server 2008 Enterprise
Target Platform Windows
Header resapi.h

See Also

ClusWorkerCreate

Resource DLL Callback Functions