<?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[Anderes Programm versteckt starten (CreateProcess)]]></title><description><![CDATA[<p>Hi,</p>
<p>also ich konnte bis jetzt Commandline Programme versteckt starten, indem ich sie mit einem anderen Programm (hide.exe) gestartet hab.</p>
<p>Quellcode der hide.exe:</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;

int main(int argc, char **argv)
{

    if (argc != 2)
    {
        return EXIT_FAILURE;
    }

    STARTUPINFO lpStartupInfo;
    PROCESS_INFORMATION lpProcessInformation;

    ZeroMemory(&amp;lpStartupInfo, sizeof(lpStartupInfo));
    lpStartupInfo.cb = sizeof(lpStartupInfo);
    lpStartupInfo.dwFlags = STARTF_USESHOWWINDOW;
    lpStartupInfo.wShowWindow = SW_HIDE;
    ZeroMemory(&amp;lpProcessInformation, sizeof(lpProcessInformation));

    if (CreateProcess(NULL, argv[1], NULL, NULL, FALSE, 0, NULL, NULL, &amp;lpStartupInfo, &amp;lpProcessInformation) != NULL)
    {
        CloseHandle(lpProcessInformation.hThread);
        CloseHandle(lpProcessInformation.hProcess);
        return EXIT_SUCCESS;
    }
    return EXIT_FAILURE;
}
</code></pre>
<p>Allerdings funktioniert dies nun nicht mehr. Das Programm wird zwar gestartet, aber nicht mehr unsichtbar.<br />
Ich finde irgendwie den Fehler nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/200460/anderes-programm-versteckt-starten-createprocess</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 11:29:47 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/200460.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Dec 2007 23:17:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anderes Programm versteckt starten (CreateProcess) on Fri, 14 Dec 2007 23:17:26 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>also ich konnte bis jetzt Commandline Programme versteckt starten, indem ich sie mit einem anderen Programm (hide.exe) gestartet hab.</p>
<p>Quellcode der hide.exe:</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;

int main(int argc, char **argv)
{

    if (argc != 2)
    {
        return EXIT_FAILURE;
    }

    STARTUPINFO lpStartupInfo;
    PROCESS_INFORMATION lpProcessInformation;

    ZeroMemory(&amp;lpStartupInfo, sizeof(lpStartupInfo));
    lpStartupInfo.cb = sizeof(lpStartupInfo);
    lpStartupInfo.dwFlags = STARTF_USESHOWWINDOW;
    lpStartupInfo.wShowWindow = SW_HIDE;
    ZeroMemory(&amp;lpProcessInformation, sizeof(lpProcessInformation));

    if (CreateProcess(NULL, argv[1], NULL, NULL, FALSE, 0, NULL, NULL, &amp;lpStartupInfo, &amp;lpProcessInformation) != NULL)
    {
        CloseHandle(lpProcessInformation.hThread);
        CloseHandle(lpProcessInformation.hProcess);
        return EXIT_SUCCESS;
    }
    return EXIT_FAILURE;
}
</code></pre>
<p>Allerdings funktioniert dies nun nicht mehr. Das Programm wird zwar gestartet, aber nicht mehr unsichtbar.<br />
Ich finde irgendwie den Fehler nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1420827</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1420827</guid><dc:creator><![CDATA[long long double]]></dc:creator><pubDate>Fri, 14 Dec 2007 23:17:26 GMT</pubDate></item><item><title><![CDATA[Reply to Anderes Programm versteckt starten (CreateProcess) on Sat, 15 Dec 2007 09:28:23 GMT]]></title><description><![CDATA[<p>Das zu startende Programm muss es auch unterstützen! Die meisten machen das nicht. Sonder erzeugen einfach sichtbare Fenster ohne darauf zu achten, was dem Programm übergeben wurde.</p>
<p>Eine andere Möglichkeit ist: Erzeuge eine Eigene Session (WinSta) und einen eigenen Desktop und starte das Programm dort. Dann sieht man es mit Sicherheit nicht <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="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1420865</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1420865</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sat, 15 Dec 2007 09:28:23 GMT</pubDate></item><item><title><![CDATA[Reply to Anderes Programm versteckt starten (CreateProcess) on Sat, 15 Dec 2007 14:41:49 GMT]]></title><description><![CDATA[<p>Ja, das weiß ich schon. Aber die Programme die ich früher so starten konnte (meine eigenen Konsolenprogramme) starten jetzt auch nicht mehr versteckt. Und ich weiß eben nicht voran es liegt, das es früher ging und jetzt nicht mehr.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1420974</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1420974</guid><dc:creator><![CDATA[long long double]]></dc:creator><pubDate>Sat, 15 Dec 2007 14:41:49 GMT</pubDate></item></channel></rss>