I compiled the following simple Win32 application using
VC++ 6.0 in Win95 but the program didn't work. It just
exited like a normal application without shutting down
the PC. What's wrong?
// shutdown.cpp
#include "stdafx.h"
#include "windows.h"
void main(int argc, char* argv[])
{
ExitWindowsEx(EWX_SHUTDOWN, 0);
}
Regards,
Mr. Man-wai Chang