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.
Pages: [1]
1
Programming / Re: Recognizing Windows Shutdown/Logoff...
« on: February 15, 2019, 08:36:54 AM »
Stéphane,
That looks like what I may be looking for; however, I'm using Nomads, so I don't know how I would do an obtain (or capture the CTL) within this framework. As I said I tried to capture the values in User Defined CTL Values screen in Nomads and set the action to End, but nothing happens when I log out. Windows also provides a prompt saying that some tasks are still running.
I also wonder if doing my own obtain would interfere with anything Nomads is doing.
I feel like we are close to figuring this out, so thanks for your continued input.
That looks like what I may be looking for; however, I'm using Nomads, so I don't know how I would do an obtain (or capture the CTL) within this framework. As I said I tried to capture the values in User Defined CTL Values screen in Nomads and set the action to End, but nothing happens when I log out. Windows also provides a prompt saying that some tasks are still running.
I also wonder if doing my own obtain would interfere with anything Nomads is doing.
I feel like we are close to figuring this out, so thanks for your continued input.
2
Programming / Re: Recognizing Windows Shutdown/Logoff...
« on: February 12, 2019, 09:24:13 AM »
Stéphane,
I hadn't looked at the CTL values. I tried to capture the -1999 and 4 CTL values in the Nomads User Defined CTL Values. Unfortunately neither one appears to be triggered on a Windows logoff/shutdown. I looked through the rest of the CTL values, but didn't see anything that indicates a shutdown value. My guess is that only someone at PVXPlus can answer this question unless someone else has already accomplished this.
Thanks.
I hadn't looked at the CTL values. I tried to capture the -1999 and 4 CTL values in the Nomads User Defined CTL Values. Unfortunately neither one appears to be triggered on a Windows logoff/shutdown. I looked through the rest of the CTL values, but didn't see anything that indicates a shutdown value. My guess is that only someone at PVXPlus can answer this question unless someone else has already accomplished this.
Thanks.
3
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.
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]