WorkerStartRoutine callback function

Initializes a worker thread with the specified callback routine. The PWORKER_START_ROUTINE type defines a pointer to this function.

Syntax


DWORD WINAPI WorkerStartRoutine(
  _In_  PCLUS_WORKER pWorker,
  _In_  LPVOID lpThreadParameter
);

typedef DWORD (WINAPI *PWORKER_START_ROUTINE)(
    _In_  PCLUS_WORKER pWorker,
    _In_  LPVOID lpThreadParameter
);

Parameters

pWorker [in]

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

lpThreadParameter [in]

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

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 Datacenter, Windows Server 2008 Enterprise

Header

ResApi.h

See also

Resource DLL Callback Functions
ClusWorkerCreate

 

 

Show:
© 2014 Microsoft