Platform SDK: Exchange Server

HrServiceGetName

The HrServiceGetName function obtains the name of a service of Windows NT Server.

Quick Info

Header file: WINWRAP.H
Library: WINWRAP.LIB

HRESULT HrServiceGetName(
  LPTSTR lpszName  
);
 

Parameters

lpszName
Output parameter. Points to the buffer to receive the service name. This buffer must be at least one byte longer than MAX_SERVICE_NAME_LENGTH.

Return Values

See Return Values.

Remarks

The HrServiceGetName function can be used by any thread to get the name of the Windows NT Server service after it has been started.

For more information on this function, see the HrServiceGetName function in WINWRAP.C under the WINWRAP code sample in 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, HrServiceProcessControl, HrServiceShutdown, HrServiceStartup, HrServiceWaitForContinue, HrServiceWaitForControl, HrServiceWaitForStop, HServiceCreateThread, ServiceMain, ServiceStop