<?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[RegQueryValueEx]]></title><description><![CDATA[<p>hi,</p>
<p>ich wollte das InstallDate aus der registry rausholen. Bekomme es aber absolut nicht hin, ka, mach winapi erst seit gestern.</p>
<p>Also der Schlüssel selber ist ein DWORD, ka wie ich das machen soll oder ob das alles immer char, bitte um eure hilfe</p>
<pre><code>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
&quot;InstallDate&quot;=dword:41dfd8f8
</code></pre>
<pre><code>bool GetInstallDate( void )
{
	LONG Check = 0;
	HKEY KeyHandle;

	DWORD InstallDate;
	DWORD lenKeyValue;

	Check = RegOpenKeyEx( HKEY_LOCAL_MACHINE, 
						 &quot;SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion&quot;,
						  0,
						  KEY_QUERY_VALUE, &amp;KeyHandle );

	if( Check != ERROR_SUCCESS )
		return false;

	Check = RegQueryValueEx( KeyHandle, &quot;InstallDate&quot;, NULL, NULL,(LPBYTE)InstallDate, &amp;lenKeyValue); 

	if( Check != ERROR_SUCCESS )
		return false;

	printf(&quot;%s\n&quot;, InstallDate );

	return true;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/102929/regqueryvalueex</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 10:56:07 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/102929.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 02 Mar 2005 21:59:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to RegQueryValueEx on Wed, 02 Mar 2005 21:59:33 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>ich wollte das InstallDate aus der registry rausholen. Bekomme es aber absolut nicht hin, ka, mach winapi erst seit gestern.</p>
<p>Also der Schlüssel selber ist ein DWORD, ka wie ich das machen soll oder ob das alles immer char, bitte um eure hilfe</p>
<pre><code>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
&quot;InstallDate&quot;=dword:41dfd8f8
</code></pre>
<pre><code>bool GetInstallDate( void )
{
	LONG Check = 0;
	HKEY KeyHandle;

	DWORD InstallDate;
	DWORD lenKeyValue;

	Check = RegOpenKeyEx( HKEY_LOCAL_MACHINE, 
						 &quot;SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion&quot;,
						  0,
						  KEY_QUERY_VALUE, &amp;KeyHandle );

	if( Check != ERROR_SUCCESS )
		return false;

	Check = RegQueryValueEx( KeyHandle, &quot;InstallDate&quot;, NULL, NULL,(LPBYTE)InstallDate, &amp;lenKeyValue); 

	if( Check != ERROR_SUCCESS )
		return false;

	printf(&quot;%s\n&quot;, InstallDate );

	return true;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/736495</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/736495</guid><dc:creator><![CDATA[pradox]]></dc:creator><pubDate>Wed, 02 Mar 2005 21:59:33 GMT</pubDate></item><item><title><![CDATA[Reply to RegQueryValueEx on Thu, 03 Mar 2005 12:27:09 GMT]]></title><description><![CDATA[<p>FAQ: <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39373.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-39373.html</a></p>
<p>FAQ schrieb:</p>
<blockquote>
<p>DWORD dwNumber = 0;<br />
DWORD dwData = sizeof(DWORD);<br />
RegQueryValueEx(hKey,&quot;EintragsName&quot;,0,0,(BYTE*)&amp;dwNumber,&amp;dwData);</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/736582</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/736582</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Thu, 03 Mar 2005 12:27:09 GMT</pubDate></item></channel></rss>