>>Of course I'vd not gotten into the api yet. Mostly from fear of screwing up.
>
>Why? What's the worst that could happen, "Data Type Mismatch"? "Too few arguments"?
Do you really want to know? You can force Windows to shut down abruptly using SendMessage() if you really try, similar to using ExitWindowsEx() with the EWX_FORCE and EWX_REBOOT under Win9x (or WinNT and Win2K if you have the necessary token privileges set for the process). But you have to try to hurt yourself to accomplish this...
>Okay, maybe the application crashes, big deal. Carpe diem, I say! DECLARE that function and call it!
Simple caveat - make sure that you save the project containing the API code out to disk before doing anything really drastic. I've lost enough source code as a result of stupid programmer tricks that smoked...