Windows Log-off

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
hivework hivework is offline Offline Sep 20th, 2004, 9:18 am |
0
This tiny code will demonstrate how to log-off from windows.
Enjoy!
Quick reply to this message  
C Syntax
  1. #include <windows.h>
  2. #include <stdio.h>
  3. int main (int argc, char **argv)
  4. {
  5. printf ("Good-bye!\n");
  6. ExitWindows(0, 0);
  7. return 0;
  8. }
0
Dark_Omen Dark_Omen is offline Offline | Sep 20th, 2004
I always thought that more went into log-in/log-off code
 
0
Mahen Mahen is offline Offline | Sep 20th, 2004
wow, just what i needed 8)
could you make one for "shutdown" :-D
 
0
dampy dampy is offline Offline | Sep 20th, 2004
great superb fantabulous man superb
 
0
BountyX BountyX is offline Offline | Sep 20th, 2004
With newer versions of windows you acn also use the "shutdown" command by calling system();
 
 

Message:


Similar Threads
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC