Yes, the function is defined in windows.h
dwReserved, however, is not.
dwReserved is, according to MSDN, held to remind you that you're supposed to put there a REASON CODE for shutting down the system, so it knows what to do (take a system snapshot, save the configuration, etc.).
The reason codes are NOT defined in Windows.h.
They are defined in Reason.h (according to MSDN), a file NOT included with MSVC 6.0 and apparently, not available on MSDN. So how the hell can we use such a useful function without the header file?!?!?!
Shadow if you have the header, I'd love a copy. OKiesmokie, if you have the header, I'd love a copy. Either way... how the heck can I find the header?!