>>>You'll have to debug it - supposing llStartApp is true - have a look at the mutex stuff [ IF VARTYPE(oAppObj.oMutex.NAME) = "C"]
>>
>>Do you know of a way to simulate a system shutdown, but without actual shutdown (e.g. I'd like to continue working, but want to test shutdown of the application from the system shutdown).
>
>Maybe with SendMessage() API?
Yes, just wanted a ready code as I'm lazy. I think I have it now - needed just two API - FindWindow and PostMessage.
If it's not broken, fix it until it is.
My Blog