Thread: ExitWindowsEx

  1. #1
    Registered User SAMSAM's Avatar
    Join Date
    Nov 2001
    Posts
    218

    ExitWindowsEx

    Hi, im using the function & using flags:

    EWX_SHUTDOWN & EWX_FORCE and setting the last param as

    0 , i processed WM_ENDSESSION as well and set the wParam

    to TRUE.

    yet it doesnt do anything and neither the thread nor system is
    shutdown.
    should i be processing the WM_QUARYENDSESSION as well?

    im running on win xp.

    do i have the right priviledges or i have to quary priviledges as well?

    cheers!



    *i am the only user on this system .
    Last edited by SAMSAM; 02-21-2003 at 08:40 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems with ExitWindowsEx
    By Yuri in forum C++ Programming
    Replies: 3
    Last Post: 08-05-2005, 05:45 PM
  2. How to shutdown (or Restart) a pc with C++
    By Unregistered in forum C++ Programming
    Replies: 27
    Last Post: 08-05-2005, 12:59 PM
  3. force shutting down, power off win98
    By hanhao in forum Windows Programming
    Replies: 2
    Last Post: 03-20-2004, 06:43 AM
  4. ExitWindowsEx()
    By face_master in forum Windows Programming
    Replies: 4
    Last Post: 01-02-2003, 07:31 AM
  5. Information: Exiting Windows
    By Okiesmokie in forum C++ Programming
    Replies: 2
    Last Post: 05-12-2002, 09:42 AM