LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

wm_queryendsession

How can I read out the WM_QUERYENDSESSION?
I want to close my App (LV 5.1.1) on Win 9x, when Windows gets an exit windows command.
0 Kudos
Message 1 of 4
(3,501 Views)
You can follow the link below to download the Windows Event Queue VIs. You should be able to use these VIs to catch the wm_queryendsession message in labview. WM_QUERYENDSESSION is = to 0x0011 according to the readme file.

http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/9fc2504965ce8197862567f600638e94?OpenDocument
0 Kudos
Message 2 of 4
(3,501 Views)
Thank You very much.
I tried to catch the wm_queryendsession. But it didn't work. I think the runtime closes because of the wm. So the LabView-Application closes without read the wm.
0 Kudos
Message 3 of 4
(3,501 Views)
wm_queryendsession is for shutting down the computer, in case you thought it was for closing the window.

I'm still puzzling out how to intercept the 'X' button, though.
0 Kudos
Message 4 of 4
(3,501 Views)