Articlename: Den aktuellen User ausloggen Keywords: aktueller user ausloggen Date: 12.12.2005, 17:50 Views: 914 Categoryname: Sonstiges ---------------------------------------- Hier der Code aus der MSDN: (http://msdn.microsoft.com/library/default.asp?url=/library/en-u s/sysinfo/base/how_to_shut_down_the_system.asp) ------- Code ------- #include // Log off the current user. ExitWindows(0, 0); // Process the message in the window procedure. case WM_QUERYENDSESSION: { int r; r = MessageBox(NULL, "Shut down?","WM_QUERYENDSESSION", MB_YESNO); // Return TRUE to allow shutdown, FALSE to stop. return r == IDYES; break; } ------- End-Code -------