In addition to basic namespace manipulation, ADSI provides developers and administrators with a powerful set of programmatic interfaces for querying and manipulating attributes of computers throughout the enterprise. The read-only properties exposed by the Windows NT service provider in the IADsComputer interface are well suited to controlling program flow to assure a machine meets certain administrator/developer-specified criteria, such as restricting an application to run on Windows NT only. The IADsService interface allows you to modify the default behavior of installed services, including the ability to change the display name and path to the service executable. Lastly, using the IADsServiceOperations interface, you can start, stop, pause, continue, and query the status of installed services for any given machine. This chapter will cover the use of these three interfaces as they relate to the Windows NT service provider. |
Top |