c# - Why doesn't the RequestAdditionalTime() method work on restart in Vista/7? -


i have been doing extensive testing of windows service have been writing in c# .net 3.5. having trouble getting windows give me enough time service shutdown when restart or shutdown computer though invoking requestadditionaltime() method should update scm , keep service running. code works if manually stop service however. have been testing code in windows vista , windows 7, upon deciding test code in windows xp worked perfectly. know why call not work in vista/7? thinking need kind of permission keep system shutting down default in xp not in vista/7.

if system isn't shutting down, service can request additional time , process not killed.

if system shutting down, service has shut down. don't normal 30 seconds service gets. shutdown more forceful used be.


Comments