<?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[systemvariable ändern]]></title><description><![CDATA[<p>hallo<br />
ich würde gern eine System/uservariable setzen/ändern und dies auch gleich allen laufenden und zukünftigen Prozessen mitteilen.<br />
Das setzen der Variable mach ich per Registry des ist kein Problem.<br />
Das alle Prozesse diese Änderung mitbekommen hab ich so gefunden:</p>
<pre><code>SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM) &quot;Environment&quot;, SMTO_ABORTIFHUNG, 5000, &amp;dwReturnValue);
</code></pre>
<p>aber leider funktioniert des nicht ich müsste trotzdem erst einen Reboot mache, was ich auf keinen Fall möchte.</p>
<p>Vielen Dank Gruß KY</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/199780/systemvariable-ändern</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 21:58:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/199780.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Dec 2007 08:15:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to systemvariable ändern on Fri, 07 Dec 2007 08:15:27 GMT]]></title><description><![CDATA[<p>hallo<br />
ich würde gern eine System/uservariable setzen/ändern und dies auch gleich allen laufenden und zukünftigen Prozessen mitteilen.<br />
Das setzen der Variable mach ich per Registry des ist kein Problem.<br />
Das alle Prozesse diese Änderung mitbekommen hab ich so gefunden:</p>
<pre><code>SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM) &quot;Environment&quot;, SMTO_ABORTIFHUNG, 5000, &amp;dwReturnValue);
</code></pre>
<p>aber leider funktioniert des nicht ich müsste trotzdem erst einen Reboot mache, was ich auf keinen Fall möchte.</p>
<p>Vielen Dank Gruß KY</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1416270</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1416270</guid><dc:creator><![CDATA[ky_fr34k]]></dc:creator><pubDate>Fri, 07 Dec 2007 08:15:27 GMT</pubDate></item><item><title><![CDATA[Reply to systemvariable ändern on Fri, 07 Dec 2007 08:20:59 GMT]]></title><description><![CDATA[<p>Was meinst du mit &quot;funktioniert nicht&quot;? Gibt es einen Syntax-Fehler? Kommt die Nachricht nicht an? Wird sie ignoriert?</p>
<p>PS: In der MSDN steht zu WM_SETTINGCHANGED:</p>
<p>MSDN schrieb:</p>
<blockquote>
<p>pszMetrics<br />
Value of lParam. Pointer to a string that indicates the area containing the system parameter that was changed. For example, this string can be the name of a registry key or the name of a section in the WIN.INI file.<br />
This parameter is not particularly useful in determining which system parameter changed. For example, when the string is a registry name, it typically indicates only the leaf node in the registry, not the whole path. In addition, some applications send this message with lParam set to NULL. In general, when you receive this message, you should check and reload any system parameter settings that are used by your application.</p>
</blockquote>
<p>(oder auf Deutsch - du solltest dich nicht auf den Wert verlassen, der als lParam gesendet wird)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1416278</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1416278</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Fri, 07 Dec 2007 08:20:59 GMT</pubDate></item><item><title><![CDATA[Reply to systemvariable ändern on Fri, 07 Dec 2007 08:28:39 GMT]]></title><description><![CDATA[<p>also mit funktioniert nicht meinte ich, dass es keine reaktion der anderen Programme gibt.<br />
Weißt du wie ich es besser/richtig machen kann?<br />
Gruß KY</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1416284</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1416284</guid><dc:creator><![CDATA[ky_fr34k]]></dc:creator><pubDate>Fri, 07 Dec 2007 08:28:39 GMT</pubDate></item><item><title><![CDATA[Reply to systemvariable ändern on Fri, 07 Dec 2007 08:30:35 GMT]]></title><description><![CDATA[<p>Was für eine Reaktion erwartest du denn? Sollen die anderen Programme einen Freudentanz auf dem Monitor aufführen, weil du so gnädig warst, ihnen eine Nachricht zukommen zu lassen <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="😃"
    /></p>
<p>WM_SETTINGCHANGED ist eine ganz normale Fensternachricht - und jedem Programm steht es frei, ob es diese Nachricht entgegennimmt (und wenn ja, was es damit anfängt).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1416286</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1416286</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Fri, 07 Dec 2007 08:30:35 GMT</pubDate></item><item><title><![CDATA[Reply to systemvariable ändern on Fri, 07 Dec 2007 08:38:17 GMT]]></title><description><![CDATA[<p>ich setzte (versuche) eine eigene Path Variable zu ändern die das Ziel einer Verknüpfung im Explorer (SendTo) ändert.<br />
Deshalb sollten die Einstellungen gleich übernommen werden. (vom Explorer)<br />
aber wie?</p>
<p>Gruß KY</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1416291</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1416291</guid><dc:creator><![CDATA[ky_fr34k]]></dc:creator><pubDate>Fri, 07 Dec 2007 08:38:17 GMT</pubDate></item><item><title><![CDATA[Reply to systemvariable ändern on Fri, 07 Dec 2007 08:41:39 GMT]]></title><description><![CDATA[<p>ky_fr34k schrieb:</p>
<blockquote>
<p>ich setzte (versuche) eine eigene Path Variable zu ändern die das Ziel einer Verknüpfung im Explorer (SendTo) ändert.<br />
Deshalb sollten die Einstellungen gleich übernommen werden. (vom Explorer)<br />
aber wie?</p>
<p>Gruß KY</p>
</blockquote>
<p>dazu muss aber mindestens der Explorer neu gestartet werden.... also kill den einfach und starte ihn neu (ich denke mal, dass das möglich sein sollte)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1416294</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1416294</guid><dc:creator><![CDATA[zwutz]]></dc:creator><pubDate>Fri, 07 Dec 2007 08:41:39 GMT</pubDate></item><item><title><![CDATA[Reply to systemvariable ändern on Fri, 07 Dec 2007 08:55:39 GMT]]></title><description><![CDATA[<p><a href="http://www.codeguru.com/cpp/w-p/win32/tutorials/article.php/c10849/" rel="nofollow">http://www.codeguru.com/cpp/w-p/win32/tutorials/article.php/c10849/</a><br />
schau dir mal des tool an, der kann des ohne irgendwas neuzustarten <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 />
ich bin anscheinend zu doof des richtig zu machen<br />
Gruß KY</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1416312</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1416312</guid><dc:creator><![CDATA[ky_fr34k]]></dc:creator><pubDate>Fri, 07 Dec 2007 08:55:39 GMT</pubDate></item><item><title><![CDATA[Reply to systemvariable ändern on Fri, 07 Dec 2007 09:55:10 GMT]]></title><description><![CDATA[<p>ky_fr34k schrieb:</p>
<blockquote>
<p><a href="http://www.codeguru.com/cpp/w-p/win32/tutorials/article.php/c10849/" rel="nofollow">http://www.codeguru.com/cpp/w-p/win32/tutorials/article.php/c10849/</a><br />
schau dir mal des tool an, der kann des ohne irgendwas neuzustarten <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 />
ich bin anscheinend zu doof des richtig zu machen<br />
Gruß KY</p>
</blockquote>
<p>das Programm ändert doch auch nur die Systemvariablen... soweit bist du ja auch schon... aber wenn ein Programm nicht regelmäßig die Systemvariablen neu einliest (was in der Regel keinen Sinn macht), dann bekommt es erst nach einem neustart eine Änderung mit</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1416354</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1416354</guid><dc:creator><![CDATA[zwutz]]></dc:creator><pubDate>Fri, 07 Dec 2007 09:55:10 GMT</pubDate></item><item><title><![CDATA[Reply to systemvariable ändern on Fri, 07 Dec 2007 10:37:37 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-18038.html" rel="nofollow">CStoll</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">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/1416385</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1416385</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Fri, 07 Dec 2007 10:37:37 GMT</pubDate></item><item><title><![CDATA[Reply to systemvariable ändern on Fri, 07 Dec 2007 10:37:52 GMT]]></title><description><![CDATA[<p>der unterschied ist halt, dass wenn ich setenv benutze und sofort danach im explorer senden an klicke, wird es an die neue position gesendet!<br />
bei mir leider nicht.</p>
<p>Gruß KY</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1416386</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1416386</guid><dc:creator><![CDATA[ky_fr34k]]></dc:creator><pubDate>Fri, 07 Dec 2007 10:37:52 GMT</pubDate></item><item><title><![CDATA[Reply to systemvariable ändern on Fri, 07 Dec 2007 16:11:36 GMT]]></title><description><![CDATA[<p>Dann zieh dir doch den Source von &quot;SetEnv&quot; und schau, was du anderes machst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1416626</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1416626</guid><dc:creator><![CDATA[Th]]></dc:creator><pubDate>Fri, 07 Dec 2007 16:11:36 GMT</pubDate></item><item><title><![CDATA[Reply to systemvariable ändern on Fri, 07 Dec 2007 17:14:09 GMT]]></title><description><![CDATA[<p>Die betroffenen Programme müssen ihre Umgebungsvariablen nach einer Änderung auch selbständig aktualisieren. Das machen aber die wenigsten. Die Aktualisierung kannst Du nicht erzwingen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1416673</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1416673</guid><dc:creator><![CDATA[sri]]></dc:creator><pubDate>Fri, 07 Dec 2007 17:14:09 GMT</pubDate></item></channel></rss>