Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OnShutdown event in a Windows Service
Message
De
31/03/2014 13:34:46
 
 
À
31/03/2014 13:00:43
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01597504
Message ID:
01597770
Vues:
29
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform