Property Name
ServiceType
Property Type
enumServicesTypes
Description
Gets and sets the type of the service. This specifies weather the
service is a Win32 service or a Win32 driver. The following values
are supported:
Value |
Decimal Value |
Hex Value |
Description |
SERVICETYPE_KERNEL_DRIVER |
1 |
1 |
Specifies a kernel driver service |
SERVICETYPE_FILE_SYSTEM_DRIVER |
2 |
2 |
Specifies a file system driver service |
SERVICETYPE_ADAPTER |
4 |
4 |
Specifies an adapter driver service |
SERVICETYPE_RECOGNIZER_DRIVER |
8 |
8 |
Specifies a recognizer driver service |
SERVICETYPE_DRIVER |
11 |
B |
Specifies a driver service. This is a combination of file system driver, kernel driver and recognizer driver |
SERVICETYPE_WIN32_OWN_PROCESS |
16 |
10 |
Specifies a Win32 based service that runs in its own process |
SERVICETYPE_WIN32_SHARE_PROCESS |
32 |
20 |
Specifies a Win32 based service that shares a process with other services |
SERVICETYPE_WIN32 |
48 |
30 |
Specifies a Win32 based service. This is combination of a Win32 Own Process and a Win32 Share Process |
SERVICETYPE_INTERACTIVE_PROCESS |
256 |
100 |
Specifies a Win32 based service process to interact with the desktop |
SERVICETYPE_INTERACTIVE_WIN32_OWN_PROCESS |
272 |
110 |
Specifies a Win32-based service running in it's own process that can interact with the desktop |
SERVICETYPE_INTERACTIVE_WIN32_SHARE_PROCESS |
288 |
120 |
Specifies a Win32-based service running in a shared process that can interact with the desktop |
SERVICETYPE_ALL |
319 |
13F |
Specifies a combination of all types of services |
Example
Dim serobj As IADsService
'Get the object of the service
Set serobj = GetObject("NTDS://MSFT/MOON/Messenger")
'Get the service type property of the service
Debug.Print serobj.ServiceType
'Set the service type property to file system driver
serobj.ServiceType = SERVICETYPE_FILE_SYSTEM_DRIVER
serobj.SetInfo
See Also: