Exporter (0) Imprimer
Développer tout
EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

Service Functions

The following functions are used or implemented by services.

FunctionDescription
Handler An application-defined callback function used with the RegisterServiceCtrlHandler function.
HandlerEx An application-defined callback function used with the RegisterServiceCtrlHandlerEx function.
RegisterServiceCtrlHandler Registers a function to handle service control requests.
RegisterServiceCtrlHandlerEx Registers a function to handle extended service control requests.
ServiceMain An application-defined function that serves as the starting point for a service.
SetServiceBits Registers a service type with the service control manager and the Server service.
SetServiceStatus Updates the service control manager's status information for the calling service.
StartServiceCtrlDispatcher Connects the main thread of a service process to the service control manager.

 

The following functions are used by programs that control, configure, or interact with services.

FunctionDescription
ChangeServiceConfig Changes the configuration parameters of a service.
ChangeServiceConfig2 Changes the optional configuration parameters of a service.
CloseServiceHandle Closes the specified handle to a service control manager object or a service object.
ControlService Sends a control code to a service.
ControlServiceEx Sends a control code to a service.
CreateService Creates a service object and adds it to the specified service control manager database.
DeleteService Marks the specified service for deletion from the service control manager database.
EnumDependentServices Retrieves the name and status of each service that depends on the specified service.
EnumServicesStatusEx Enumerates services in the specified service control manager database based on the specified information level.
GetServiceDisplayName Retrieves the display name of the specified service.
GetServiceKeyName Retrieves the service name of the specified service.
NotifyBootConfigStatus Reports the boot status to the service control manager.
NotifyServiceStatusChange Enables an application to receive notification when the specified service is created or deleted or when its status changes.
OpenSCManager Establishes a connection to the service control manager on the specified computer and opens the specified service control manager database.
OpenService Opens an existing service.
QueryServiceConfig Retrieves the configuration parameters of the specified service.
QueryServiceConfig2 Retrieves the optional configuration parameters of the specified service.
QueryServiceDynamicInformation Retrieves dynamic information related to the current service start.
QueryServiceObjectSecurity Retrieves a copy of the security descriptor associated with a service object.
QueryServiceStatusEx Retrieves the current status of the specified service based on the specified information level.
SetServiceObjectSecurity Sets the security descriptor of a service object.
StartService Starts a service.

 

Obsolete Functions

The following functions are obsolete.

EnumServicesStatus
LockServiceDatabase
QueryServiceLockStatus
QueryServiceStatus
UnlockServiceDatabase

 

 

Ajouts de la communauté

AJOUTER
Afficher:
© 2014 Microsoft