<?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[programm in autostart eintragen]]></title><description><![CDATA[<p>Warum funktioniert mein Code nicht?<br />
Ich möchte meine Anwendung in Autostart eintragen:</p>
<pre><code class="language-cpp">HKEY hKeyResult;
    RegCreateKeyEx( HKEY_LOCAL_MACHINE, &quot;SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run&quot;, 0, 0, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &amp;hKeyResult, 0 );
	TCHAR szFileName[MAX_PATH];
	GetModuleFileName(NULL, szFileName, sizeof(szFileName) / sizeof(TCHAR)); 
    if(hKeyResult != NULL)
        RegSetValueEx( hKeyResult, szFileName, 0, REG_SZ, (LPBYTE)szFileName, (DWORD)strlen(szFileName)+1 );
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/225428/programm-in-autostart-eintragen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 16:56:21 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/225428.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Oct 2008 10:40:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to programm in autostart eintragen on Thu, 23 Oct 2008 10:40:53 GMT]]></title><description><![CDATA[<p>Warum funktioniert mein Code nicht?<br />
Ich möchte meine Anwendung in Autostart eintragen:</p>
<pre><code class="language-cpp">HKEY hKeyResult;
    RegCreateKeyEx( HKEY_LOCAL_MACHINE, &quot;SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run&quot;, 0, 0, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &amp;hKeyResult, 0 );
	TCHAR szFileName[MAX_PATH];
	GetModuleFileName(NULL, szFileName, sizeof(szFileName) / sizeof(TCHAR)); 
    if(hKeyResult != NULL)
        RegSetValueEx( hKeyResult, szFileName, 0, REG_SZ, (LPBYTE)szFileName, (DWORD)strlen(szFileName)+1 );
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1603302</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1603302</guid><dc:creator><![CDATA[autostartvistaandxp]]></dc:creator><pubDate>Thu, 23 Oct 2008 10:40:53 GMT</pubDate></item><item><title><![CDATA[Reply to programm in autostart eintragen on Thu, 23 Oct 2008 11:07:09 GMT]]></title><description><![CDATA[<p>so geht es auch nicht</p>
<pre><code class="language-cpp">HKEY hKeyResult;
    RegCreateKeyEx( HKEY_LOCAL_MACHINE, &quot;SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run&quot;, 0, 0, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &amp;hKeyResult, 0 );

    char *AppName = &quot;TestApp&quot;;
    char AppPath[MAX_PATH];
	GetModuleFileName (NULL, AppPath, MAX_PATH);

    if(hKeyResult != NULL)
        RegSetValueEx( hKeyResult, AppName, 0, REG_SZ, (LPBYTE)AppPath, (DWORD)strlen(AppPath)+1 );
	RegCloseKey(hKeyResult);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1603319</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1603319</guid><dc:creator><![CDATA[autostartvistaandxp]]></dc:creator><pubDate>Thu, 23 Oct 2008 11:07:09 GMT</pubDate></item><item><title><![CDATA[Reply to programm in autostart eintragen on Thu, 23 Oct 2008 11:10:58 GMT]]></title><description><![CDATA[<p>ich habe auch schon die rückgabewerte überprüft. Beides gibt ERROR_SUCCES zurück.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1603325</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1603325</guid><dc:creator><![CDATA[autostartvistaandxp]]></dc:creator><pubDate>Thu, 23 Oct 2008 11:10:58 GMT</pubDate></item><item><title><![CDATA[Reply to programm in autostart eintragen on Thu, 23 Oct 2008 12:43:49 GMT]]></title><description><![CDATA[<p>es hängt damit zusammen von wo ich es starte!<br />
wenn ich es in C:\\ starte geht es und aufm desktop auch<br />
aber da wo es vorher war nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1603400</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1603400</guid><dc:creator><![CDATA[autostartvistaandxp]]></dc:creator><pubDate>Thu, 23 Oct 2008 12:43:49 GMT</pubDate></item><item><title><![CDATA[Reply to programm in autostart eintragen on Thu, 23 Oct 2008 12:58:12 GMT]]></title><description><![CDATA[<p>Vielleicht ist der Pfad zu lang.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1603413</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1603413</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 23 Oct 2008 12:58:12 GMT</pubDate></item></channel></rss>