Windows Log-off

hivework 0 Tallied Votes 129 Views Share

This tiny code will demonstrate how to log-off from windows.
Enjoy!

#include <windows.h>
#include <stdio.h>
int main (int argc, char **argv)
{
 printf ("Good-bye!\n");
 ExitWindows(0, 0);
 return 0;
}
Dark_Omen 5 Posting Pro

I always thought that more went into log-in/log-off code

Mahen 0 Junior Poster

wow, just what i needed 8)
could you make one for "shutdown" :-D

dampy 0 Newbie Poster

great superb fantabulous man superb

BountyX 7 Posting Whiz in Training

With newer versions of windows you acn also use the "shutdown" command by calling system();

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.