#include <winuser.h> #include <windows.h> void main(){ ExitWindowsEx(EWX_SHUTDOWN, 0); // Second param is ignored }Ok, one more time. Note, when you reply, the format is lost. I use Mike Helland utility to convert text to HTML, but it's for VFP only (so I made few manual changes). We have to expand it on VB and VC too.