LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to capture the message of Windows system that will shutdown?

Hello,

 

I want to finish my application if the user shutdown the Windows system, are there any cvi functions can be used? My OS is Windows 7.

 

 

David

0 Kudos
Message 1 of 3
(3,052 Views)

Hi David,

 

a valuable source of information is the CVI help Smiley Wink

 

for your case I would suggest a panel callback checking for EVENT_END_TASK

 

Description: LabWindows/CVI sends the end task event to the main callback function when Windows wants to quit

 

Wolfgang

 

0 Kudos
Message 2 of 3
(3,040 Views)

Hi Wolfgang,

 

Thank you!

 

David

0 Kudos
Message 3 of 3
(3,028 Views)