Explain the types of window services.- Window service enables you to create long-running executable applications that run in their own windows sessions.
- These services can be automatically started when the computer boots.
- It can be paused, restarted and do not show any user interface.
Following are the types of Window services:
1. Win32OwnProcess: 2. Win32ShareProcess:
- You can easily create services by creating an application that is installed as a service.
1.Win32OwnProcess:
- The services that are the only service in a process are assigned the type Win32OwnProcess.
- It is a Win32 process that can be started by the Service Controller.
- This type of Win32 service runs in a process by itself.
2.Win32ShareProcess:
- The services that share a process with another service are assigned the type Win32ShareProcess.
- It is a Win32 service that allows sharing of processes with other Win32 services.
- You can retrieve the service type by querying the ServiceType property.
|