G
Guest
Guest
Archived from groups: microsoft.public.windowsnt.registry (More info?)
Hello,
In an installer,
I update a service registry key to
"Allow service to interact with desktop"
HKLM\System\CurrentControlSet\Services\<MyService>\Type DWORD 272
(272 instead of the default 16)
This has no effect until I do one of two things.
- reboot the machine, or
- 1) right-click properties on the service
(in the services mmc),
2) unselect and reselect
"Allow service to interact with desktop"
(this highlights the apply button)
3) click APPLY
4) right-click restart the service
I found this Google article
that mentions the same feature, without
the solution
http://groups.google.com/groups?q=%22Allow+service+to+interact+with+desktop%22&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=b5f34828.0204261503.5142881e%40posting.google.com&rnum=3
I investigated a little further, and here is my understanding
of the problem :
- services.exe is in charge of starting/stopping services.
- it reads once the environment variables and relevant registry
keys when the machine is booted up, and gives these to
the services it stops and starts
- it can't be stopped and restarted without rebooting
- it is not informed of the registry key change I perform
during installation
- until I click apply on the mmc service property window
or I reboot the machine
Does anybody know which API call is equivalent to clicking
Apply in the service properties window. I want to
avoid rebooting the machine just to change a single
bit in the registry when I know that it is possible
to avoid it.
Any information appreciated. Thanks in advance.
-- Benoit
platforms : w2k sp2, wxp sp1
Hello,
In an installer,
I update a service registry key to
"Allow service to interact with desktop"
HKLM\System\CurrentControlSet\Services\<MyService>\Type DWORD 272
(272 instead of the default 16)
This has no effect until I do one of two things.
- reboot the machine, or
- 1) right-click properties on the service
(in the services mmc),
2) unselect and reselect
"Allow service to interact with desktop"
(this highlights the apply button)
3) click APPLY
4) right-click restart the service
I found this Google article
that mentions the same feature, without
the solution
http://groups.google.com/groups?q=%22Allow+service+to+interact+with+desktop%22&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=b5f34828.0204261503.5142881e%40posting.google.com&rnum=3
I investigated a little further, and here is my understanding
of the problem :
- services.exe is in charge of starting/stopping services.
- it reads once the environment variables and relevant registry
keys when the machine is booted up, and gives these to
the services it stops and starts
- it can't be stopped and restarted without rebooting
- it is not informed of the registry key change I perform
during installation
- until I click apply on the mmc service property window
or I reboot the machine
Does anybody know which API call is equivalent to clicking
Apply in the service properties window. I want to
avoid rebooting the machine just to change a single
bit in the registry when I know that it is possible
to avoid it.
Any information appreciated. Thanks in advance.
-- Benoit
platforms : w2k sp2, wxp sp1