locked
ExitWindowsEx EWX_RESTARTAPPS doesn't work RRS feed

  • Question

  • Hi!

    I need an exe-file to shutdown/restart my WIN XP SP3-System.
    I found this code: "http://msdn.microsoft.com/en-us/library/aa376871.asp" which compiles and runs fine in Dev-Cpp.
    But when I add the Parameter EWX_RESTARTAPPS to ExitWindowsEx, nothing happens when I start the exe.
    GetLastError() returns 5.

    What does that mean and what can I do?

    Regards,
    Johannes


    • Edited by phangan Wednesday, March 6, 2013 1:59 PM
    Wednesday, March 6, 2013 1:45 PM

Answers

All replies