Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OnShutdown event in a Windows Service
Message
From
31/03/2014 13:34:46
 
 
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:
01597770
Views:
28
>That structure is only there so that the service can report it's status to the SCM. You shouldn't need to worry about it - all you should need to do is add the SERVICE_ACCEPT_PRESHUTDOWN flag to the commandsAccepted property (That's the value that will be reflected in the dwControlsAccepted field of the struct).

As per the example I have posted, you probably have seen that this not working in my case. The OnCustomCommand() event does not fire on shutdown. It seems SERVICE_ACCEPT_PRESHUTDOWN is not supported on Windows Server 2003. If that is the case, that would explain.
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