Search code examples
windowswinapiwindows-2000

Windows 2000 software reboot


Is there a way to reboot W2K in a native way?

ExitWindows(Ex)
InitiateSystemShutdown(Ex)

Works starting from Windows XP. May be I can kill a kernel to force the reboot but it's weird. I wasn't able to find anything on MSDN.


Solution

  • For InitiateSystemShutdown, MSDN states that the minimum supported version is XP, but that can easily be misinterpreted. This does not mean that the function was introduced in XP. Sometimes when MSDN documentation is updated, the minimum supported version fields are updated to be at least the minimum supported OS version, even if that version is later than the version in which the function was introduced.

    In this case, for this function, you can certainly use it on Windows 2000.

    If you are still actively targeting such an old version of Windows, you really should try to find an old MSDN disk and refer to the documentation from that. That will make your life much simpler.