<?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[Windows XP runterfahren]]></title><description><![CDATA[<p>Hi,</p>
<p>ich hab einen Scheduler geschrieben, dessen Hauptzweck es war, WinXP<br />
zu einem bestimmten Zeitpunkt runterzufahren.<br />
Wenn der Zeitpunkt eintritt, kann eine cmd oder exe aufgerufen werden.</p>
<p>Ich habe eine cmd-Datei mit &quot;shutdown -f -s&quot; aufgerufen, nur leider<br />
stellt sich der Rechner damit nicht aus, sondern es erscheint die<br />
&quot;Sie können jetzt ausschalten&quot;-Seite.<br />
Weiss jemand, wie man runterfährt und sich der Rechner ausschaltet?</p>
<p>Danke.</p>
<p>Jockel</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/96799/windows-xp-runterfahren</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Apr 2026 05:23:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/96799.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Jan 2005 09:40:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Windows XP runterfahren on Wed, 05 Jan 2005 09:40:16 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich hab einen Scheduler geschrieben, dessen Hauptzweck es war, WinXP<br />
zu einem bestimmten Zeitpunkt runterzufahren.<br />
Wenn der Zeitpunkt eintritt, kann eine cmd oder exe aufgerufen werden.</p>
<p>Ich habe eine cmd-Datei mit &quot;shutdown -f -s&quot; aufgerufen, nur leider<br />
stellt sich der Rechner damit nicht aus, sondern es erscheint die<br />
&quot;Sie können jetzt ausschalten&quot;-Seite.<br />
Weiss jemand, wie man runterfährt und sich der Rechner ausschaltet?</p>
<p>Danke.</p>
<p>Jockel</p>
]]></description><link>https://www.c-plusplus.net/forum/post/687258</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/687258</guid><dc:creator><![CDATA[Jockelx]]></dc:creator><pubDate>Wed, 05 Jan 2005 09:40:16 GMT</pubDate></item><item><title><![CDATA[Reply to Windows XP runterfahren on Wed, 05 Jan 2005 10:29:24 GMT]]></title><description><![CDATA[<p>Ich hab ein Icon gemacht mit der Zeile:</p>
<pre><code>%systemroot%\system32\shutdown.exe -s -t 05 -f
</code></pre>
<p>rechner fährt runter und schaltet sich aus....das -t 05 ist damit man noch 5sec zeit hat programme zu beenden usw...!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/687295</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/687295</guid><dc:creator><![CDATA[ser1al]]></dc:creator><pubDate>Wed, 05 Jan 2005 10:29:24 GMT</pubDate></item><item><title><![CDATA[Reply to Windows XP runterfahren on Wed, 05 Jan 2005 10:36:49 GMT]]></title><description><![CDATA[<p>5er1al: Das funktioniert ja anscheinend. Er schaltet sich ja nur nicht aus.</p>
<p>Jockelx: Geh mal in <em>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon</em> und schau ob <em>PowerdownAfterShutdown</em> auf 1 steht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/687301</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/687301</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Wed, 05 Jan 2005 10:36:49 GMT</pubDate></item><item><title><![CDATA[Reply to Windows XP runterfahren on Wed, 05 Jan 2005 10:59:26 GMT]]></title><description><![CDATA[<p>Bin leider gerade nicht zuhause, kann es also nicht testen.<br />
Allerdings befürchte ich, dass das nicht funktioniert, da beim<br />
runterfahren über start::beenden der Rechner ja auch abgeschaltet wird.</p>
<p>Ich werde es aber ausprobieren. Danke erstmal.</p>
<p>Jockel</p>
]]></description><link>https://www.c-plusplus.net/forum/post/687326</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/687326</guid><dc:creator><![CDATA[Jockelx]]></dc:creator><pubDate>Wed, 05 Jan 2005 10:59:26 GMT</pubDate></item><item><title><![CDATA[Reply to Windows XP runterfahren on Wed, 05 Jan 2005 12:52:33 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=1819" rel="nofollow">kingruedi</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=8" rel="nofollow">Rund um die Programmierung</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" 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/687481</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/687481</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 05 Jan 2005 12:52:33 GMT</pubDate></item><item><title><![CDATA[Reply to Windows XP runterfahren on Wed, 05 Jan 2005 13:39:39 GMT]]></title><description><![CDATA[<p>ich hab auch schon son programm geschrieben, hatte das problem also auch schon...hier der quellcode, du musst nämlich erst die rechte dafür anfordern...</p>
<p>MNusst nur den text eingeben :</p>
<p>HANDLE hToken;<br />
TOKEN_PRIVILEGES tkp;<br />
MSG msg;</p>
<p>// Get a token for this process.<br />
if (!OpenProcessToken(GetCurrentProcess(),<br />
TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &amp;hToken))<br />
MessageBox(NULL, &quot;Error while creating a process token!&quot;, B_OK, 0);</p>
<p>// Get the LUID for the shutdown privilege.</p>
<p>LookupPrivilegeValue(NULL, SE_SHUTDOWN_NAME,<br />
&amp;tkp.Privileges[0].Luid);</p>
<p>tkp.PrivilegeCount = 1; // one privilege to set<br />
tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;</p>
<p>// Get the shutdown privilege for this process.</p>
<p>AdjustTokenPrivileges(hToken, FALSE, &amp;tkp, 0,<br />
(PTOKEN_PRIVILEGES)NULL, 0);</p>
<p>// Cannot test the return value of AdjustTokenPrivileges.</p>
<p>if (GetLastError() != ERROR_SUCCESS)<br />
MessageBox(NULL, &quot;Error while adjusting token privileges!&quot;, MB_OK, 0);</p>
<p>// Shut down the system and force all applications to close.</p>
<p>if (!ExitWindowsEx(EWX_POWEROFF, 0))<br />
MessageBox(NULL, &quot;Error while trying to shutdown! &quot;, MB_OK, 0); [/code]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/687531</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/687531</guid><dc:creator><![CDATA[Maikel]]></dc:creator><pubDate>Wed, 05 Jan 2005 13:39:39 GMT</pubDate></item></channel></rss>