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:
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.