PxPlus User Forum

Twitter Twitter Twitter

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - davidr

Pages: [1]
1
Programming / Recognizing Windows Shutdown/Logoff...
« on: February 08, 2019, 01:55:59 PM »
I'm trying to figure out if there is a way for my Providex program to recognize a shutdown (or logoff) from the Windows system.  I did some research and found references to the System.Environment.HasShutdownStarted variable and SystemEvents.SessionEnding event within Windows, but I'm not sure how I would access either of these in Providex.  I also looked at the Event directive in the manual, but I don't believe this will capture a Windows shutdown.

Essentially I want to be able to gracefully close my Providex program when a Windows shutdown is detected in order to prevent any data loss or corruption.

Any insight is greatly appreciated.

Thanks.

Pages: [1]