LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

cvi windows event

I want to create an app using CVI, under Windows 2K, that will start automatically when a specific user logs in and stop automatically when he logs out. The application will dynamically allocate memory. I know I can put the app in the user's startup folder to begin processing. I don't, however, know how to capture a Windows logout event, which I think I need to do in order to free allocated memory. Do I need to get into the Windows SDK to capture the logout event, or does CVI provide windows event handling services? Many thanks, Kevin Redmond
0 Kudos
Message 1 of 3
(3,068 Views)
As per trapping shutdown event, you could look at this thread.

However, as you will see in this thread I didn't succeed in managing this issue: I hope you won't have the same difficulties as me.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 3
(3,051 Views)
I have fixed my problem by calling InstallMainCallback and handling the EVENT_END_TASK event within the event handler. This seems to get generated from a logout. Thanks for the help.
0 Kudos
Message 3 of 3
(3,020 Views)