User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 392,210 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,770 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser:
Sep 20th, 2004
Views: 2,921
This tiny code will demonstrate how to log-off from windows.
Enjoy!
c Syntax | 3 stars
  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 (Newest First)
Dark_Omen | Posting Pro | Sep 20th, 2004
I always thought that more went into log-in/log-off code
Mahen | Junior Poster in Training | Sep 20th, 2004
wow, just what i needed 8)
could you make one for "shutdown" :-D
dampy | Newbie Poster | Sep 20th, 2004
great superb fantabulous man superb
BountyX | Code Guru | Sep 20th, 2004
With newer versions of windows you acn also use the "shutdown" command by calling system();
Post Comment

Only community members can submit or comment on code snippets. You must register or log in to contribute.

DaniWeb Marketplace (Sponsored Links)
All times are GMT -4. The time now is 4:36 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC