HServiceCreateThread

The HServiceCreateThread function creates a wrapped thread.

Quick Info

Header file: WINWRAP.H
Library: WINWRAP.LIB

HANDLE HServiceCreateThread(
  LPLONG lplStartThreads,                 
  LPLONG lplStopThreads,                  
  LPSECURITY_ATTRIBUTES lpThreadAttributes,  
  DWORD dwStackSize,                      
  LPTHREAD_START_ROUTINE lpStartAddress,  
  LPVOID lpParameter,                     
  DWORD dwCreationFlags,                  
  LPDWORD lpThreadId                      
);
 

Parameters

lplStartThreads
Input parameter. Number of running threads.
lplStopThreads
Input parameter. Number of stopped threads.
lpThreadAttributes
Input parameter. Thread attributes.
dwStackSize
Input parameter. Stack size.
lpStartAddress
Input parameter. Start address.
lpParameter
Input parameter. Parameter.
dwCreationFlags
Input parameter. Creation flags.
lpThreadId
Output parameter. Thread identifier.

Return Values

Returns handle to the created thread.

Remarks

For more information on this function, see the HServiceCreateThread function in WINWRAP.C under the WINWRAP code sample in the Code Samples folder.

For more information on the WINWRAP library, see Using WINWRAP Functions, Mandatory Entry Points and Variables, and Events Signalled.

See Also

fIsService, FServiceReportStatus, HrServiceConfirmStop, HrServiceGetArgv, HrServiceGetName, HrServiceProcessControl, HrServiceShutdown, HrServiceStartup, HrServiceWaitForContinue, HrServiceWaitForControl, HrServiceWaitForStop, ServiceMain, ServiceStop