the system("logoff"); thing didn't work
i made a console app then used this code...
but a dos window popped up that says "Bad command or file name Press any key to continue_"Code:#include<windows.h> main() { system("logoff"); }
also, how do you make a program that runs in the background of windows and doesn't create a window?