<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Funktion für Shutdown, Standby usw.]]></title><description><![CDATA[<p>Hi Leute!<br />
Ich hatte gestern in der MSDN passende Funktionen gefunden, jedoch finde ich sie nicht mehr!<br />
Ich suche eine funktion zum herunterfahren des systems, neustart, standby ohne shutdown.exe !!!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/107107/funktion-für-shutdown-standby-usw</link><generator>RSS for Node</generator><lastBuildDate>Mon, 06 Jul 2026 11:16:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/107107.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 16 Apr 2005 10:41:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Funktion für Shutdown, Standby usw. on Sat, 16 Apr 2005 10:41:08 GMT]]></title><description><![CDATA[<p>Hi Leute!<br />
Ich hatte gestern in der MSDN passende Funktionen gefunden, jedoch finde ich sie nicht mehr!<br />
Ich suche eine funktion zum herunterfahren des systems, neustart, standby ohne shutdown.exe !!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/768182</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/768182</guid><dc:creator><![CDATA[freakSkater]]></dc:creator><pubDate>Sat, 16 Apr 2005 10:41:08 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion für Shutdown, Standby usw. on Sat, 16 Apr 2005 11:06:45 GMT]]></title><description><![CDATA[<p>ist ne winapi frage ^^ alle anfragen über sys funktionen am besten ins winapi forum wenns um redmond geht</p>
<p>ExitWindowsEx(uFlags,res); //res steht für reserviert und kann vollkommen ignoriert werden</p>
<p>· uFlags<br />
EWX_FORCE<br />
Forces processes to terminate. When this flag is set, Windows does not send the messages WM_QUERYENDSESSION and WM_ENDSESSION to the applications currently running in the system. This can cause the applications to lose data. Therefore, you should only use this flag in an emergency.<br />
EWX_LOGOFF<br />
Shuts down all processes running in the security context of the process that called the ExitWindowsEx function. Then it logs the user off.<br />
EWX_POWEROFF<br />
Shuts down the system and turns off the power. The system must support the power-off feature.<br />
Windows NT: The calling process must have the SE_SHUTDOWN_NAME privilege. For more information, see the following Remarks section.<br />
Windows 95: Security privileges are not supported or required.<br />
EWX_REBOOT<br />
Shuts down the system and then restarts the system.<br />
Windows NT: The calling process must have the SE_SHUTDOWN_NAME privilege. For more information, see the following Remarks section.<br />
Windows 95: Security privileges are not supported or required.<br />
EWX_SHUTDOWN<br />
Shuts down the system to a point at which it is safe to turn off the power. All file buffers have been flushed to disk, and all running processes have stopped.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/768201</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/768201</guid><dc:creator><![CDATA[ink3n]]></dc:creator><pubDate>Sat, 16 Apr 2005 11:06:45 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion für Shutdown, Standby usw. on Sat, 16 Apr 2005 16:56:09 GMT]]></title><description><![CDATA[<p>Jaaaa! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> Danke!!!!!<br />
Genau die Funktion hatte ich gestern gefunden und heute gesucht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /> .<br />
Sorry....ist schon das falsche Forum, ich musste nur vorhin schnell weg und da hab ichs ins falsche Forum gepostet.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/768468</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/768468</guid><dc:creator><![CDATA[freakSkater]]></dc:creator><pubDate>Sat, 16 Apr 2005 16:56:09 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion für Shutdown, Standby usw. on Wed, 13 Jun 2007 18:52:50 GMT]]></title><description><![CDATA[<p>Man sollte vielleicht noch erwähnen, dass man bei WinXP ein Recht zum runterfahren/neustarten etc braucht:</p>
<pre><code class="language-cpp">HANDLE hToken;
TOKEN_PRIVILEGES tkp;
OpenProcessToken(GetCurrentProcess(),TOKEN_ADJUST_PRIVILEGES|TOKEN_QUERY,&amp;hToken);
LookupPrivilegeValue(NULL,SE_SHUTDOWN_NAME,&amp;tkp.Privileges[0].Luid);
tkp.PrivilegeCount=1;
tkp.Privileges[0].Attributes=SE_PRIVILEGE_ENABLED;
AdjustTokenPrivileges(hToken,false,&amp;tkp,0,(PTOKEN_PRIVILEGES)NULL,0);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1305121</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1305121</guid><dc:creator><![CDATA[++gast++]]></dc:creator><pubDate>Wed, 13 Jun 2007 18:52:50 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion für Shutdown, Standby usw. on Thu, 14 Jun 2007 05:50:16 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-9713.html" rel="nofollow">estartu</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-1.html" rel="nofollow">MFC (Visual C++)</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-4.html" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1305308</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1305308</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Thu, 14 Jun 2007 05:50:16 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion für Shutdown, Standby usw. on Thu, 14 Jun 2007 08:14:28 GMT]]></title><description><![CDATA[<p>Man sollte noch erwähnen, dass im Code von ++gast++ jegliche Fehlerbehandlung fehlt und dass man nicht von Rechten spricht, sondern von Privilegien. Und in diesem Fall hat der Benutzer das Privileg schon, es wird nur noch aktiviert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1305407</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1305407</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Thu, 14 Jun 2007 08:14:28 GMT</pubDate></item></channel></rss>