Heh... I sounded slightly short in the last reply there... Sorry... Didn't quite mean to make it sound like I'm angry...

Well... The whole application is two things... A logon script, and a control panel for the master computer where I am. The control panel perform operations like kick off user, send/receive messages, read computer status (in use or not), run apps and more snacks like that (I'll explain further if needed).

The way I have done this (it might be a long way around, but at least it's my way) is to save information from the master computer, to a global INI-file, found in the NETLOGON-folder. When the KIX-application running hidden on the workstation detects a variable change in the proper place of the INI-file, it runs the desired action, like kick off (even though I easily could have done this with ShutDown()) and also the functions mentioned above, like send/receive messages.

I know there's a lot of programs like this already out there, but I'm just making one to get better in Kix and programming...

I just need a way to figure out how to detect when the user logs off or shuts down the computer. All suggestions are taken with a great THANK YOU in a desperate moment (like this!)