I did extensive testing of the Windows service that I wrote in C # .Net 3.5. I am having problems getting Windows to give me enough time for my service to work properly when I restart or shut down the computer, even if I call the RequestAdditionalTime () method, which should update SCM and keep my service running. My code works correctly if I manually stopped the service. First of all, I tested this code in Windows Vista and Windows 7, having decided to test the code in Windows Xp, everything worked perfectly. Does anyone know why this call does not work in Vista / 7? I think I need some permission so that the system does not shut down, which I get by default in Xp, but not in Vista / 7.
Kam Sheffield
source share