Announcement

Collapse
No announcement yet.

Full Windows Restart

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Full Windows Restart

    I have a program that constantly pings the server to make sure
    the connection exists if it doesn't I send

    Code:
    Ans=ExitWindowsEx(0, %EWX_REBOOT)
    to restart windows and log the user back in automatically using
    Tweak UI. While the restart "appears" to work it does not
    "restart" as you would as if you would restart from the start
    menu manually. Yes it does log you off but it appears to not do
    a true restart. I have tried several of the other parameters to
    try and get a true restart to no avail. What am I missing or
    is there another way of doing this? It appears as though it
    simply log's the user off.

    Thanks
    Doug

    Doug

    ------------------


    [This message has been edited by Douglas C. Horner (edited October 17, 2001).]
    There is a principle which is a bar against all information, which is proof against all arguments and which cannot fail to keep a man in everlasting ignorance - that principle is contempt prior to investigation.

    Herbert Spencer

  • #2
    Once again I found my own problem

    Correct Syntax for total restart

    Code:
    ExitWindowsEx %EWX_REBOOT,0
    Win 98

    Doug

    ------------------
    There is a principle which is a bar against all information, which is proof against all arguments and which cannot fail to keep a man in everlasting ignorance - that principle is contempt prior to investigation.

    Herbert Spencer

    Comment

    Working...
    X