Platform SDK: Exchange Server

ServiceMain

The ServiceMain function is implemented by the server application developer to perform processing while a service of Windows NT Server runs.

Quick Info

Header file: WINWRAP.H
Library: WINWRAP.LIB

VOID ServiceMain(
  HANDLE hShutdownEvent  
);
 

Parameters

hShutdownEvent
Input parameter. Handle to a Shutdown event.

Return Values

None.

Remarks

ServiceMain executes in its own thread.

For more information on this function, see Using WINWRAP Functions.

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

See Also

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