943,929 Members | Top Members by Rank

Ad:
  • C Code Snippet
  • Views: 4882
  • C RSS
0

Windows Log-off

by on Sep 20th, 2004
This tiny code will demonstrate how to log-off from windows.
Enjoy!
C Code Snippet (Toggle Plain Text)
  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. }
Comments on this Code Snippet
Sep 20th, 2004
0

Re: Windows Log-off

I always thought that more went into log-in/log-off code
Posting Pro
Dark_Omen is offline Offline
573 posts
since Apr 2004
Sep 20th, 2004
0

Re: Windows Log-off

wow, just what i needed 8)
could you make one for "shutdown" :-D
Junior Poster
Mahen is offline Offline
144 posts
since Aug 2004
Sep 20th, 2004
0

Re: Windows Log-off

great superb fantabulous man superb
Newbie Poster
dampy is offline Offline
4 posts
since Sep 2004
Sep 20th, 2004
0

Re: Windows Log-off

With newer versions of windows you acn also use the "shutdown" command by calling system();
Posting Whiz in Training
BountyX is offline Offline
222 posts
since Mar 2004
Message:
Previous Thread in C Forum Timeline: Calc in C
Next Thread in C Forum Timeline: Capturing Keyboard Input





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC