Platform SDK: Active Directory, ADSI, and Directory Services

IADsServiceOperations

The IADsServiceOperations interface 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.

IADsServiceOperations is a dual interface that inherits from IADs. The IADsServiceOperations interface exposes the following properties and methods.

Methods in Vtable Order

IUnknown methods Description
QueryInterface Returns pointers to supported interfaces.
AddRef Increments reference count.
Release Decrements reference count.

IDispatch methods Description
GetTypeInfoCount Gets the number of type descriptions.
GetTypeInfo Gets a description of the object's programmable interface.
GetIDsOfNames Maps the name of the method or property to DISPID.
Invoke Calls one of the object's methods, or gets and sets one of its properties.

IADsServiceOperations property methods Description
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.

Requirements

  Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with DSClient).
  Windows 95/98: Requires Windows 95 or later (with DSClient).
  Header: Declared in Iads.h.

See Also

IADsFileService, IADsFileServiceOperations