>> is around US$300; I have a Universal subscription, which
>> runs about US$2000, which includes all of the MS Operating
>
>US$2000 a year? That would be my one-month salary! Too expensive
>for me. that's why I am using my office's VS6 to write programs
>for my home use. ANd that's why I tried ExitWindowsEx(). I did
>read the MSDN CD (NOT the DVD version). I couldn't find any chapter
>talking about abnormaly of ExitWindowsEX(). To be frank, I could
>the MSDN CD so difficult to read, always pointing to the wrong
>place.
>
Don't blame me - I feel that it's to my advantage to have all of VS, all of Office, all of MS's operating system distributions, most of the open betas, and the quarterly updates to the MSDN, so I spend my money on the Universal Subscription. Much of what I develop is subject to intellectual property law (I file patents and copyrights on much of what I develop) and having clear ownership of the tools helps establish my ownership of my work product. if I use my employers tools, software or hardware, they might have some claim on my work product, even if I develop it on my own time.
The MSDN documentation on ExitWindowsEx is pretty explicit; read the entry on Windows 95 immediately before the QuickInfo section of the documentation.
>I just wonder whether you could show me the proper way of using
>ExitWindowsEx() to power-off my PC.
>
>There were alternatives, but I don't want to install VB Runtime
>or WSH. A plain-old vanilla EXE would be nice! Guess the days
>of Turbo C for DOS wouldn't come back... :)