<?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[Ntuser.dat laden, schreiben und lesen! :&#x2F;]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich hab mit der windows registry den ordner HKEY_CURRENT_USER exportiert,<br />
dateiname ntuser2.dat.</p>
<p>Wie kann ich jetzt mit den Reg-Funktionen auf die Datei zugreifen? Also nicht auf die windowsregistry sondern auf die exportierte Datei mit registry werten... (exportiert als registrierungsstrukturdateien <em>.</em>)</p>
<p>Hoffe ihr könnt mir helfen! Möchte bzw. müsste dann aus der Datei registry werte lesen und schreiben können...</p>
<p>vielen danke<br />
mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/188912/ntuser-dat-laden-schreiben-und-lesen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 03 Jul 2026 00:47:36 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/188912.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Aug 2007 09:34:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ntuser.dat laden, schreiben und lesen! :&#x2F; on Mon, 06 Aug 2007 09:34:49 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich hab mit der windows registry den ordner HKEY_CURRENT_USER exportiert,<br />
dateiname ntuser2.dat.</p>
<p>Wie kann ich jetzt mit den Reg-Funktionen auf die Datei zugreifen? Also nicht auf die windowsregistry sondern auf die exportierte Datei mit registry werten... (exportiert als registrierungsstrukturdateien <em>.</em>)</p>
<p>Hoffe ihr könnt mir helfen! Möchte bzw. müsste dann aus der Datei registry werte lesen und schreiben können...</p>
<p>vielen danke<br />
mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1339421</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1339421</guid><dc:creator><![CDATA[regprogger]]></dc:creator><pubDate>Mon, 06 Aug 2007 09:34:49 GMT</pubDate></item><item><title><![CDATA[Reply to Ntuser.dat laden, schreiben und lesen! :&#x2F; on Mon, 06 Aug 2007 10:05:33 GMT]]></title><description><![CDATA[<p>RegLoadKey / RegUnloadKey</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1339431</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1339431</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 06 Aug 2007 10:05:33 GMT</pubDate></item><item><title><![CDATA[Reply to Ntuser.dat laden, schreiben und lesen! :&#x2F; on Mon, 06 Aug 2007 10:36:01 GMT]]></title><description><![CDATA[<p>hmm ich habs schon versucht, hat allerdings nicht geklappt!</p>
<pre><code>HKEY *hKey=NULL;
HKEY hKey2=HKEY_CURRENT_USER;
hKey = RegLoadKey(hKey2,&quot;console&quot;,&quot;T:\\ntusernew.dat&quot;);
</code></pre>
<p>Wie muss ich es anstellen?</p>
<p>danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1339446</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1339446</guid><dc:creator><![CDATA[regprogger]]></dc:creator><pubDate>Mon, 06 Aug 2007 10:36:01 GMT</pubDate></item><item><title><![CDATA[Reply to Ntuser.dat laden, schreiben und lesen! :&#x2F; on Mon, 06 Aug 2007 10:52:03 GMT]]></title><description><![CDATA[<p>edit:<br />
int error = RegLoadKey(hKey2,&quot;console&quot;,&quot;T:\\ntusernew.dat&quot;);</p>
<p>if(error!=ERROR_SUCCESS)<br />
MessageBox(0,&quot;error&quot;,0,0);</p>
<p>aber es kommt eben error, so funkts nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1339453</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1339453</guid><dc:creator><![CDATA[regprogger]]></dc:creator><pubDate>Mon, 06 Aug 2007 10:52:03 GMT</pubDate></item><item><title><![CDATA[Reply to Ntuser.dat laden, schreiben und lesen! :&#x2F; on Mon, 06 Aug 2007 12:02:16 GMT]]></title><description><![CDATA[<p>Wie wärs wenn du den Error mal auswertest und mal sagst was das für eine ist!</p>
<p>schirrmie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1339502</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1339502</guid><dc:creator><![CDATA[schirrmie]]></dc:creator><pubDate>Mon, 06 Aug 2007 12:02:16 GMT</pubDate></item><item><title><![CDATA[Reply to Ntuser.dat laden, schreiben und lesen! :&#x2F; on Mon, 06 Aug 2007 12:03:53 GMT]]></title><description><![CDATA[<p>Ich bekomm so den fehler 1314:</p>
<p>zitat:</p>
<p>//<br />
// MessageId: ERROR_PRIVILEGE_NOT_HELD<br />
//<br />
// MessageText:<br />
//<br />
// A required privilege is not held by the client.<br />
//<br />
#define ERROR_PRIVILEGE_NOT_HELD 1314L</p>
<p>(c) microsoft winerror.h</p>
<p>ich weiß nicht aber ich wär schon admin <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/1339505</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1339505</guid><dc:creator><![CDATA[regprogger]]></dc:creator><pubDate>Mon, 06 Aug 2007 12:03:53 GMT</pubDate></item><item><title><![CDATA[Reply to Ntuser.dat laden, schreiben und lesen! :&#x2F; on Mon, 06 Aug 2007 12:41:27 GMT]]></title><description><![CDATA[<p>ich hab das problem nun gelöst, man musste dem programm selbst spezielle rechte geben, damit es registryfiles laden kann:</p>
<pre><code>bool SetProcRegAccessPrivs(bool bSet)
{
	HANDLE hCurrentToken; 
	LUID lPriv1,lPriv2;
	TOKEN_PRIVILEGES tpPriv;

	if(!OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &amp;hCurrentToken))
	{
		MessageBox(0,&quot;Error getting Process Token&quot;,&quot;ERROR&quot;,MB_ICONERROR|MB_ICONINFORMATION);
		return false;
	}

	if(!LookupPrivilegeValue(NULL,SE_RESTORE_NAME, &amp;lPriv1)||!LookupPrivilegeValue(NULL,SE_BACKUP_NAME, &amp;lPriv2))
	{
		MessageBox(0,&quot;Error getting Privilege Values&quot;,&quot;ERROR&quot;,MB_ICONERROR|MB_ICONINFORMATION);
        return false;
	}

	tpPriv.PrivilegeCount = 2;
	tpPriv.Privileges[0].Luid = lPriv1;
	tpPriv.Privileges[1].Luid = lPriv2;

	if(bSet)
	{
        tpPriv.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
		tpPriv.Privileges[1].Attributes = SE_PRIVILEGE_ENABLED;
	}
    else
	{
        tpPriv.Privileges[0].Attributes = 0;
		tpPriv.Privileges[1].Attributes = 0;
	}

	if(!AdjustTokenPrivileges(hCurrentToken, FALSE, &amp;tpPriv, 0, (PTOKEN_PRIVILEGES) NULL, 0))
	{
		MessageBox(0,&quot;Error setting Privilege Values&quot;,&quot;ERROR&quot;,MB_ICONERROR|MB_ICONINFORMATION);
        return false;
	}

	return true;
}
</code></pre>
<p>nun funktioniert es!<br />
danke an alle.<br />
mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1339546</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1339546</guid><dc:creator><![CDATA[regprogger]]></dc:creator><pubDate>Mon, 06 Aug 2007 12:41:27 GMT</pubDate></item><item><title><![CDATA[Reply to Ntuser.dat laden, schreiben und lesen! :&#x2F; on Tue, 07 Aug 2007 12:28:52 GMT]]></title><description><![CDATA[<p>so nun hab ich noch ein klitzekleines Problem,<br />
es hat alles funktioniert, nur das RegUnLoadKey(HKEY_LOCAL_MACHINE,&quot;temp&quot;);</p>
<p>funktioniert noch nicht!?</p>
<p>Error-Code ist 5:</p>
<p>Zitat:<br />
//<br />
// MessageId: ERROR_ACCESS_DENIED<br />
//<br />
// MessageText:<br />
//<br />
// Access is denied.<br />
//<br />
#define ERROR_ACCESS_DENIED 5L<br />
(c) Microsoft</p>
<p>Muss ich meinem Programm noch mehr Privilegien geben? Oder was könnte ich sonst noch versuchen?</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1340139</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1340139</guid><dc:creator><![CDATA[regprogger]]></dc:creator><pubDate>Tue, 07 Aug 2007 12:28:52 GMT</pubDate></item><item><title><![CDATA[Reply to Ntuser.dat laden, schreiben und lesen! :&#x2F; on Thu, 09 Aug 2007 14:04:39 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-185593.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-185593.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341578</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341578</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 09 Aug 2007 14:04:39 GMT</pubDate></item><item><title><![CDATA[Reply to Ntuser.dat laden, schreiben und lesen! :&#x2F; on Thu, 09 Aug 2007 17:39:53 GMT]]></title><description><![CDATA[<p>Hast Du *alle* Handles geschlossen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341774</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341774</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 09 Aug 2007 17:39:53 GMT</pubDate></item></channel></rss>