Share via


Services.exe Functions

The following table shows the Services.exe functions with a description of the purpose of each.

Programming element Description
ActivateService This function is called to load a service.
DeregisterService This function stops a service instance.
EnumServices This function returns information about all running services on the device.
GetServiceHandle This function returns the handle to a service instance based on its prefix.
RegisterService This function creates a new instance of a service.
ServiceAddPort This function causes Services.exe to listen on the specified socket address and map network requests on the socket to the specified service instance.
ServiceClosePort This function closes the specified port listening on the super server.
ServiceIoControl This function sends a control code directly to a specified device driver causing the corresponding device to perform the specified operation.
ServiceUnbindPorts This function closes all ports that are listening on the super server and are associated with the specified device.
xxx_Close This function is implemented by a service and will be called by Services.exe.
xxx_Deinit This function is to be implemented by a service and will be called by Services.exe.
xxx_Init This function is to be implemented by a service and will be called by Services.exe.
xxx_IOControl This function is used to send a control code to a service.
xxx_Open This function is to be implemented by a service and will be called by Services.exe.
xxx_Read This function is to be implemented by a service and will be called by Services.exe. This function need only be implemented by a streaming service.
xxx_Seek This function is to be implemented by a service and will be called by Services.exe. This function need only be implemented by a streaming service.
xxx_Write This function is to be implemented by a service and will be called by Services.exe. Only streaming services need to implement this function.

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.