PCLUSAPI_CLUS_WORKER_CREATE callback function

Creates a worker thread. The PCLUSAPI_CLUS_WORKER_CREATE type defines a pointer to this function.

Syntax

PCLUSAPI_CLUS_WORKER_CREATE PclusapiClusWorkerCreate;

DWORD PclusapiClusWorkerCreate(
  OUT PCLUS_WORKER lpWorker,
  IN PWORKER_START_ROUTINE lpStartAddress,
  IN PVOID lpParameter
)
{...}

Parameters

lpWorker

Pointer to a zero-initialized CLUS_WORKER structure that on return is filled in with a handle to the created thread and a flag that indicates whether the handle should be terminated. The caller should never need to refer to or change the members of this structure.

lpStartAddress

Pointer to the address of a function that should be called by the worker thread.

lpParameter

A parameter to pass to the function whose address is pointed to by lpStartAddress.

Return Value

If the operation succeeds, the function returns ERROR_SUCCESS.

If the operation fails, the function returns a system error code.

Requirements

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

See Also

CLUS_WORKER

ClusWorkerCheckTerminate

ClusWorkerTerminate