<?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[WM_DESTROY]]></title><description><![CDATA[<p>Hi, ich wollte eine funktion ausführen lassen, wenn der Computer heruntergefahren wird und eine, wenn das Programm gestartet wird.</p>
<p>Ich hab also eine WinMain erstellt und das getan:</p>
<pre><code class="language-cpp">case WM_CREATE:
//Funktionsaufruf
break;

case WM_DESTROY:
//Funktionsaufruf
break;
</code></pre>
<p>Aber die Funktionen werden nicht ausgeführt. Kann es daran liegen, dass ich gar kein Fenster erstelle?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/83903/wm_destroy</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 14:23:53 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/83903.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Aug 2004 13:47:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WM_DESTROY on Wed, 25 Aug 2004 13:47:13 GMT]]></title><description><![CDATA[<p>Hi, ich wollte eine funktion ausführen lassen, wenn der Computer heruntergefahren wird und eine, wenn das Programm gestartet wird.</p>
<p>Ich hab also eine WinMain erstellt und das getan:</p>
<pre><code class="language-cpp">case WM_CREATE:
//Funktionsaufruf
break;

case WM_DESTROY:
//Funktionsaufruf
break;
</code></pre>
<p>Aber die Funktionen werden nicht ausgeführt. Kann es daran liegen, dass ich gar kein Fenster erstelle?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/590904</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/590904</guid><dc:creator><![CDATA[nero-ex]]></dc:creator><pubDate>Wed, 25 Aug 2004 13:47:13 GMT</pubDate></item><item><title><![CDATA[Reply to WM_DESTROY on Wed, 25 Aug 2004 13:52:28 GMT]]></title><description><![CDATA[<blockquote>
<p>Kann es daran liegen, dass ich gar kein Fenster erstelle?</p>
</blockquote>
<p>rofl</p>
]]></description><link>https://www.c-plusplus.net/forum/post/590910</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/590910</guid><dc:creator><![CDATA[lol]]></dc:creator><pubDate>Wed, 25 Aug 2004 13:52:28 GMT</pubDate></item><item><title><![CDATA[Reply to WM_DESTROY on Wed, 25 Aug 2004 14:00:36 GMT]]></title><description><![CDATA[<p>Hallo,<br />
wen du kein Fenster in der WinMain erzeugst auf was soll dan WM_CREATE WM_DESTROY angewendet weden?</p>
<p>MFG TaccoGo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/590920</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/590920</guid><dc:creator><![CDATA[TaccoGo]]></dc:creator><pubDate>Wed, 25 Aug 2004 14:00:36 GMT</pubDate></item><item><title><![CDATA[Reply to WM_DESTROY on Wed, 25 Aug 2004 14:21:08 GMT]]></title><description><![CDATA[<p>Ok, habe jetzt ein Fenster erstellt. Das Fenster wird aber nicht gezeigt.</p>
<p>Es soll auch erst beendet werden, wenn Der Computer heruntergefahren wird.</p>
<p>Also hab ich die Funktion in WM_DESTROY eingefügt, aber wenn ich mich jetzt abmelde, Wird diese Funktion nicht aufgerufen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/590947</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/590947</guid><dc:creator><![CDATA[nero-ex]]></dc:creator><pubDate>Wed, 25 Aug 2004 14:21:08 GMT</pubDate></item><item><title><![CDATA[Reply to WM_DESTROY on Wed, 25 Aug 2004 14:25:41 GMT]]></title><description><![CDATA[<p>Also bekommst du jetzt schonmal das WM_CREATE und dein Fenster ist nur unsichtbar, oder wird es erst gar nicht erstellt?!</p>
<p><a href="http://msdn.microsoft.com/library/en-us/sysinfo/base/wm_endsession.asp" rel="nofollow">WM_ENDSESSION</a> <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/590956</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/590956</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 25 Aug 2004 14:25:41 GMT</pubDate></item><item><title><![CDATA[Reply to WM_DESTROY on Wed, 25 Aug 2004 15:08:15 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">case WM_DESTROY:
{        
dat();
PostQuitMessage (0);       /* send a WM_QUIT to the message queue */
break;
}

case WM_ENDSESSION:
dat();
break;
</code></pre>
<p>Will eigentlich nur die Funktion dat() aufrufen, wenn der Benutzer sich abmeldet</p>
]]></description><link>https://www.c-plusplus.net/forum/post/590997</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/590997</guid><dc:creator><![CDATA[nero-ex]]></dc:creator><pubDate>Wed, 25 Aug 2004 15:08:15 GMT</pubDate></item><item><title><![CDATA[Reply to WM_DESTROY on Wed, 25 Aug 2004 15:19:39 GMT]]></title><description><![CDATA[<p>nero-ex schrieb:</p>
<blockquote>
<p>[msdn]WM_ENDSESSION message informs the application whether the session is ending[/msdn]<br />
mit session meinen die, ob der PC herunter gefahren wird, oder?</p>
</blockquote>
<blockquote>
<p><em>lParam</em><br />
If this parameter includes ENDSESSION_LOGOFF, the user is logging off; otherwise, the user is shutting down the system. (Note that this parameter is a bit mask. To test for this value, use a bit-wise operation; do not test for equality.)<br />
If this parameter is zero, the system is shutting down.</p>
</blockquote>
<p>Aber du hast immer noch nicht gesagt, ob du überhaupt WM_CREATE bekommst, also ob überhaupt ein Fenster erstellt wurde <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/591010</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/591010</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 25 Aug 2004 15:19:39 GMT</pubDate></item><item><title><![CDATA[Reply to WM_DESTROY on Wed, 25 Aug 2004 15:23:14 GMT]]></title><description><![CDATA[<p>Ja, die Funktion bei WM_CREATE wird aufgefürht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/591013</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/591013</guid><dc:creator><![CDATA[nero-ex]]></dc:creator><pubDate>Wed, 25 Aug 2004 15:23:14 GMT</pubDate></item></channel></rss>