ClusWorkerCreate

The ClusWorkerCreate utility function creates a worker thread.

DWORD WINAPI ClusWorkerCreate(    
  PCLUS_WORKER Worker,
  PWORKER_START_ROUTINE lpStartAddress,
  PVOID lpParameter
);
 

Parameters

Worker
[out] Pointer to a CLUS_WORKER structure that is filled in with a handle to the created thread and a flag that indicates whether or not the handle should be terminated. The caller should never need to refer to or change the members of this structure.
lpStartAddress
[in] Pointer to the address of a function that should be processed by the worker thread.
lpParameter
[in] A parameter to pass to the function whose address is pointed to by lpStartAddress.

Return Values

ERROR_SUCCESS
The thread was created successfully.

If the operation was unsuccessful, ClusWorkerCreate returns a Win32® error value.

QuickInfo

  Version: Use Windows NT Server Enterprise Edition 4.0.
  Windows CE: Unsupported.
  Header: Declared in clusapi.h.