Platform SDK: Active Directory, ADSI, and Directory Services |
The property methods of the IADsService interface read and write the properties described in this topic. For more information see Interface Property Methods.
Property | Description | ||
---|---|---|---|
Dependencies
[Visual Basic] [C++] |
Array of BSTR names of services or load groups that must be loaded in order for this service to load. The syntax for the entry is "Service:" followed by the service name or "Group:" followed by the load group name. | ||
DisplayName
[Visual Basic] [C++] |
The friendly display name of the service. | ||
ErrorControl
[Visual Basic] [C++] |
Action that should be taken if this service fails on startup. Valid values are: | ||
ADS_SERVICE_ERROR_IGNORE ADS_SERVICE_ERROR_NORMAL ADS_SERVICE_ERROR_SEVERE ADS_SERVICE_ERROR_CRITICAL |
0x00000000 0x00000001 0x00000002 0x00000003 |
||
HostComputer
[Visual Basic] [C++] |
The ADsPath string of the host of this service. | ||
LoadOrderGroup
[Visual Basic] [C++] |
Name of the load order group that this service is a member of. | ||
Path
[Visual Basic] [C++] |
Path and filename to the executable of this service. | ||
ServiceAccountName
[Visual Basic] [C++] |
Name of the account that this service uses to authenticate itself on startup. | ||
ServiceAccountPath
[Visual Basic] [C++] |
Path of the account specified by the ServiceAccountName property. | ||
ServiceType
[Visual Basic] [C++] |
The description of how a service manifests itself on the host computer. ServiceType is a bit mask that can contain the logical OR of the supported service type constant values. Valid values are as follows: | ||
ADS_SERVICE_KERNEL_DRIVER ADS_SERVICE_FILE_SYSTEM_DRIVER ADS_SERVICE_OWN_PROCESS ADS_SERVICE_SHARE_PROCESS |
0x00000001 0x00000002 0x00000010 0x00000020 |
||
StartType
[Visual Basic] [C++] |
The type you should use to start this service. Valid types are defined as follows and are derived from the appropriate Win32 SERVICE_XXX constants. | ||
ADSI Service Start Type ADS_SERVICE_BOOT_START ADS_SERVICE_SYSTEM_START ADS_SERVICE_AUTO_START ADS_SERVICE_DEMAND_START ADS_SERVICE_DISABLED |
Win32 Service Start Type ADS_SERVICE_BOOT_START ADS_SERVICE_SYSTEM_START ADS_SERVICE_AUTO_START ADS_SERVICE_DEMAND_START ADS_SERVICE_DISABLED |
||
StartupParameters
[Visual Basic] [C++] |
Parameters passed to the service on startup. | ||
Version
[Visual Basic] [C++] |
Version information of the service. |
The following Visual Basic code snippet illustrates how to list all the available system services running on the host machine, "myMachine", together with the location to find the executables of the services.
Dim cp as IADsComputer Set cp = GetObject("WinNT://myMachine,computer") If (IsEmpty(cp) = False) then cp.Filter = Array("Service") For Each service in cp MsgBox service.Name & " @" & service.path Next End if