The IADsServiceOperations interface is a dual interface that inherits from IADs. It is designed to manage system services installed on a computer. You can use this interface to start, pause, and stop a system service, change the password, and examine the status of a given service across a network.
Of the system services and their operations, file service and file service operations are a special case. They are represented and managed by IADsFileService and IADsFileServiceOperations.
The IADsServiceOperations interface inherits the methods of the standard COM interfaces:
In addition, IADsServiceOperations defines the following methods.
|get_Status||Gets the status of the service.|
|Start||Starts the service.|
|Stop||Stops the service.|
|Pause||Pauses the service.|
|Continue||Continues the service.|
|SetPassword||Sets the password to be used by the service manager to create a security context.|
The IADsServiceOperations interface defines the following property. The preceding table includes an access method for this property.
|Status||Gets the status of the service.|
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Iads.h.