<?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[Problem mit  RegOpenKeyEx&#x2F; RegQueryValueEx (abgetrennt von: Display ansteuerung)]]></title><description><![CDATA[<p>in sachen registry auslesen stehen wir vor folgendem problem :</p>
<pre><code class="language-cpp">#include &lt;iostream.h&gt;
#include &lt;conio.h&gt;
#include &lt;windows.h&gt;

int main()
    {
    HKEY hKey;

    RegOpenKeyEx(HKEY_LOCAL_MACHINE,&quot;SYSTEM\\ControlSet001\\Control\\ComputerName\\ComputerName&quot;,0,KEY_QUERY_VALUE,&amp;hKey);

    unsigned long datasize = 0;

    char c_name[256];

    RegQueryValueEx(hKey, &quot;ComputerName&quot;, NULL, NULL, (LPBYTE)&amp;c_name, &amp;datasize);

    cout &lt;&lt; hKey &lt;&lt; endl;
    cout &lt;&lt; c_name &lt;&lt; endl;
    getch();
    return 0;
    }
</code></pre>
<p>es wird folgendes auf dem bildschirm ausgegeben :</p>
<p>000007D0<br />
$+-A</p>
<p><strong>Edit:</strong><br />
Bitte die <strong><a href="http://c-plusplus.net/forum/faq.php?mode=bbcode" rel="nofollow">Code-Tags</a></strong> benutzen. Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/76361/problem-mit-regopenkeyex-regqueryvalueex-abgetrennt-von-display-ansteuerung</link><generator>RSS for Node</generator><lastBuildDate>Sun, 28 Jun 2026 22:26:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/76361.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 10 Jun 2004 11:52:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit  RegOpenKeyEx&#x2F; RegQueryValueEx (abgetrennt von: Display ansteuerung) on Thu, 10 Jun 2004 12:08:57 GMT]]></title><description><![CDATA[<p>in sachen registry auslesen stehen wir vor folgendem problem :</p>
<pre><code class="language-cpp">#include &lt;iostream.h&gt;
#include &lt;conio.h&gt;
#include &lt;windows.h&gt;

int main()
    {
    HKEY hKey;

    RegOpenKeyEx(HKEY_LOCAL_MACHINE,&quot;SYSTEM\\ControlSet001\\Control\\ComputerName\\ComputerName&quot;,0,KEY_QUERY_VALUE,&amp;hKey);

    unsigned long datasize = 0;

    char c_name[256];

    RegQueryValueEx(hKey, &quot;ComputerName&quot;, NULL, NULL, (LPBYTE)&amp;c_name, &amp;datasize);

    cout &lt;&lt; hKey &lt;&lt; endl;
    cout &lt;&lt; c_name &lt;&lt; endl;
    getch();
    return 0;
    }
</code></pre>
<p>es wird folgendes auf dem bildschirm ausgegeben :</p>
<p>000007D0<br />
$+-A</p>
<p><strong>Edit:</strong><br />
Bitte die <strong><a href="http://c-plusplus.net/forum/faq.php?mode=bbcode" rel="nofollow">Code-Tags</a></strong> benutzen. Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/537378</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/537378</guid><dc:creator><![CDATA[klabauterman]]></dc:creator><pubDate>Thu, 10 Jun 2004 12:08:57 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit  RegOpenKeyEx&#x2F; RegQueryValueEx (abgetrennt von: Display ansteuerung) on Thu, 10 Jun 2004 12:02:49 GMT]]></title><description><![CDATA[<p>Wieviel ist datasize nach dem Aufruf?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/537389</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/537389</guid><dc:creator><![CDATA[junix]]></dc:creator><pubDate>Thu, 10 Jun 2004 12:02:49 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit  RegOpenKeyEx&#x2F; RegQueryValueEx (abgetrennt von: Display ansteuerung) on Thu, 10 Jun 2004 12:07:48 GMT]]></title><description><![CDATA[<p>Die Funktionen haben nicht ohne Grund einen Rückgabewert, den sollte man auch mal auswerten! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /><br />
Insgesamt ist das aber eher eine Frage für's WinAPI-Forum, im BCB benutzt man üblicherweise die VCL-Klasse TRegistry.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/537394</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/537394</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Thu, 10 Jun 2004 12:07:48 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit  RegOpenKeyEx&#x2F; RegQueryValueEx (abgetrennt von: Display ansteuerung) on Thu, 10 Jun 2004 12:16:24 GMT]]></title><description><![CDATA[<p>ich habe leider keine ahnung bitte um hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/537402</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/537402</guid><dc:creator><![CDATA[klabauterman]]></dc:creator><pubDate>Thu, 10 Jun 2004 12:16:24 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit  RegOpenKeyEx&#x2F; RegQueryValueEx (abgetrennt von: Display ansteuerung) on Thu, 10 Jun 2004 12:22:58 GMT]]></title><description><![CDATA[<p>der datasize beträgt: 8</p>
]]></description><link>https://www.c-plusplus.net/forum/post/537408</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/537408</guid><dc:creator><![CDATA[klabauterman]]></dc:creator><pubDate>Thu, 10 Jun 2004 12:22:58 GMT</pubDate></item></channel></rss>