Hi all,
is there a way to catch a Windows log off or/and shutdown event in LV? For me it's totally anoying that with a running DSC Engine a first log off/shutdown does only stop the DSC Engine and then forgets about it. Further on I have a second "background" process running that looks at the DSC Engine. As it doesn't know about the shutdown/log off it's just registering the DSC Engine stop (that's fine so far), but needs an additional log off event to be stopped.
I found a promising thread http://forums.ni.com/ni/board/message?board.id=170&message.id=89988 identifying the problem. What I would like to do now, is catching the WM_QUERYENDSESSION message of windows using the nevertheless running backgroud process of mine, wait for the shutdown of the DSC Engine (or shutting down it explicitely) and then call the shutdown/log off again (that means I'll have to know whether a shutdown or a log off was requested). But that will soon be annyoing, if there are some more LabVIEW apps running.
Better would be a bug fix by NI which doesn't kill the WM_QUERYENDSESSION...
So far,
Carsten