<?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[Registry]]></title><description><![CDATA[<p>Hallo,<br />
ich möchte ein Programm schreiben wo ich mit einem Button/Menü ein Registryeintrag leeren kann in VC++ .NET<br />
Kann jemand mir helfen? Am besten den Quelltext für das Button/Menu</p>
<p>Danke sehr im voraus</p>
<p>Maximo</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/42934/registry</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 12:15:23 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/42934.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Jul 2003 09:11:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Registry on Thu, 17 Jul 2003 09:11:20 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich möchte ein Programm schreiben wo ich mit einem Button/Menü ein Registryeintrag leeren kann in VC++ .NET<br />
Kann jemand mir helfen? Am besten den Quelltext für das Button/Menu</p>
<p>Danke sehr im voraus</p>
<p>Maximo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/311203</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/311203</guid><dc:creator><![CDATA[maximo]]></dc:creator><pubDate>Thu, 17 Jul 2003 09:11:20 GMT</pubDate></item><item><title><![CDATA[Reply to Registry on Thu, 17 Jul 2003 09:55:37 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">HKEY hKey;

if (RegOpenKey(HKEY_CURRENT_USER,NULL,&amp;hKEy) == ERROR_SUCCESS) {
	RegDeleteKey(hKey,&quot;Console&quot;),RegCloseKey(hKey);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/311241</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/311241</guid><dc:creator><![CDATA[Shlo]]></dc:creator><pubDate>Thu, 17 Jul 2003 09:55:37 GMT</pubDate></item><item><title><![CDATA[Reply to Registry on Thu, 17 Jul 2003 12:01:51 GMT]]></title><description><![CDATA[<p>super!<br />
nur hab gleich 2 fragen:<br />
1.wenn ich den Eintrag:<br />
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run<br />
leeren will muss ich dann diesen statt HKEY_CURRENT_USER eingeben?</p>
<p>2. wie mach ich das damit ich einen Schlüssel übers Programm ändern kann?<br />
Z.B. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run<br />
Schlüssel: nwiz</p>
<p>Ich weiss ich brauch dann ein Eingabefeld, mehr weiss ich aber nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Kann mir da jemand helfen?<br />
das Thema hat mich immer interessiert, weil wenn man manche Einträge leeren/ändern will muss man immer manuel leeren/ändern</p>
<p>Vielen Dank im voraus</p>
<p>Maximo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/311354</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/311354</guid><dc:creator><![CDATA[maximo]]></dc:creator><pubDate>Thu, 17 Jul 2003 12:01:51 GMT</pubDate></item><item><title><![CDATA[Reply to Registry on Thu, 17 Jul 2003 14:14:49 GMT]]></title><description><![CDATA[<p>maximo schrieb:</p>
<blockquote>
<p>1.wenn ich den Eintrag:<br />
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run<br />
leeren will muss ich dann diesen statt HKEY_CURRENT_USER eingeben?</p>
</blockquote>
<p>als ersten Parameter übergibts du HKEY_LOCAL_MACHINE und für den Subkey &quot;SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run&quot;. Ansonsten schau dir mein Beispiel an. Die Daten werden einfach über zwei Schleifen eingelesen und in szBuffer bzw szValueName gespeichert, vielleicht hilft dir es weiter:</p>
<pre><code class="language-cpp">char szBuffer[255], szValueName[255];
int nResult, nValue;

HKEY hKey, hTempKey;
DWORD dwValueSize = sizeof(szBuffer), dwValue;

if (::RegOpenKeyEx(HKEY_CURRENT_USER,&quot;AppEvents\\Schemes\\Apps&quot;,0,KEY_ALL_ACCESS,&amp;hKey) == ERROR_SUCCESS) {
	for (int i = 0; nResult != ERROR_NO_MORE_ITEMS; i++) {
		nResult = ::RegEnumKeyEx(hKey,i,szBuffer,&amp;dwValueSize,NULL,NULL,&amp;dwValue,NULL);
		//...
		::RegOpenKey(HKEY_CURRENT_USER,&quot;Console&quot;,&amp;hTempKey);

		for (int j = 0; nValue != ERROR_NO_MORE_ITEMS; j++) {
				nValue = ::RegEnumValue(hTempKey,j,szValueName,&amp;dwValueSize,NULL,NULL,NULL,NULL);
				//...
		}
	}
	RegCloseKey(hKey), RegCloseKey(hTempKey);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/311484</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/311484</guid><dc:creator><![CDATA[Shlo]]></dc:creator><pubDate>Thu, 17 Jul 2003 14:14:49 GMT</pubDate></item><item><title><![CDATA[Reply to Registry on Thu, 17 Jul 2003 14:23:46 GMT]]></title><description><![CDATA[<p>das mit dem Subkey verstehe ich jetzt<br />
nur was ist mit dem Ändern des Schlüssels?<br />
Ich bin ja kein C++ Guru/Profi</p>
<p>ist die Variable dwValue für die Schlüsseländerung zuständig?<br />
wenn ja wie mach ich das eben dass es von dem Eingabefeld nimmt und den Schlüssel ändert?</p>
<p>Danke sehr!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/311494</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/311494</guid><dc:creator><![CDATA[maximo]]></dc:creator><pubDate>Thu, 17 Jul 2003 14:23:46 GMT</pubDate></item><item><title><![CDATA[Reply to Registry on Thu, 17 Jul 2003 16:02:21 GMT]]></title><description><![CDATA[<p>F.A.Q.<br />
-&gt; MFC und WinAPI</p>
]]></description><link>https://www.c-plusplus.net/forum/post/311576</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/311576</guid><dc:creator><![CDATA[CrazyOwl]]></dc:creator><pubDate>Thu, 17 Jul 2003 16:02:21 GMT</pubDate></item></channel></rss>