Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OnShutdown event in a Windows Service
Message
From
30/03/2014 15:53:39
 
 
To
30/03/2014 15:47:25
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01597504
Message ID:
01597719
Views:
25
>Since overriding a shutdown is frowned on you may be running into hard coded checks, safeties or timeouts.

I think I have found why this event is not firing.

Page http://msdn.microsoft.com/en-us/library/windows/desktop/ms685996(v=vs.85).aspx describes a SERVICE_ACCEPT_PRESHUTDOWN property which is known as "The service can perform preshutdown tasks. This control code enables the service to receive SERVICE_CONTROL_PRESHUTDOWN notifications.".

I would then assume it is OFF by default. So, I just need to turn it ON. However, this is a structure. So, it needs a few adjustments here and there.

I will follow up once I have new results.

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform