Mapa mental
SERVICE

Conteúdo do mapa
SERVICE
Process
- provide a service
- rely Win API
- Ever running
Components
- Service App
- Service Control Program
- Services.msc
- Service Control Manager
How is create?
- 1. El instalador del program debe registrar su servicio
- 2. Setup call a Advapi32.dll function
- CreateService
- Specify: Type (single,share), Path, Display Name, Account - context security, Startup Type(Manual,Automatic), Error Code (how react?)
- 3. A message is sended to SCM
- 4. SCM crea key in Registry
- HKLM\System\ CurrentControlSet\Services
- Save all parameters
- Note The SCM does not access a service’s Parameters subkey until the service is deleted, at which time the SCM deletes the service’s entire key, including subkeys like Parameters.
- Save all parameters
- HKLM\System\ CurrentControlSet\Services
- 4. SCM crea key in Registry
- CreateService
- 2. Setup call a Advapi32.dll function
- 1. El instalador del program debe registrar su servicio
How Start a service?
- SCM send Start command
- Process main thread run StartServiceCtrlDispatcher
- Accet List of services point
- Named pipe communication to SCM
- Service thread
- Is Running?
- YES
- Call RegisterServiceCtrlHandler --> save the Service Control Handler in the main process
- Implemented for manage a lot of SCM commands
- Inicialyze SERVICE
- SCM ask its progress
- Service thread --> Loop waiting REQUESTS from CLIENT APPs
- Call RegisterServiceCtrlHandler --> save the Service Control Handler in the main process
- NO
- Return to the main function
- Free resources before out
- Return to the main function
- YES
- Is Running?
- Service thread
- Named pipe communication to SCM
- Accet List of services point
- Process main thread run StartServiceCtrlDispatcher
- SCM send Start command
Imagens e arquivos do mapa
Informações
- Descrição
- Mapa Mental sobre SERVICE, criado por karoluisa em 15-01-2016.
- Criado por
- karoluisa
- Visualizações
- 2
- Histórico
-
- Criado por Alejandra Neolopan · 15 jan 2016
- Copiado por karoluisa · 15 jan 2016
- Avaliação