Platform SDK: Exchange Server

HrServiceStartup

The HrServiceStartup function is implemented by the server application developer to initialize a service of Windows NT Server.

Quick Info

Header file: WINWRAP.H
Library: WINWRAP.LIB

HRESULT HrServiceStartup(
  HINSTANCE hInstance,  
  HINSTANCE hPrevInstance,  
  HWND hwndMainWindow,  
  LPSTR pszCmdLine      
);
 

Parameters

hInstance
Input parameter. Handle of current instance of the service.
hPrevInstance
Input parameter. Handle of previous instance of the service.
hwndMainWindow
Input parameter. Handle to Main window.
pszCmdLine
Input parameter. Points to command line.

Return Values

See Return Values.

Remarks

The Microsoft Exchange Server Code Samples folder contains two implementations of the HrServiceStartup function:

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

See Also

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