<?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[Anwendung will nicht minimiert&#x2F;inaktiv starten - CreateProcess]]></title><description><![CDATA[<p>Hi!</p>
<p>Ich habe jetzt ein neues CreateProcess-Problem, wobei ich mir nicht sicher bin, ob es wirklich an meinem Aufruf liegt.<br />
Der Code ist wie folgt:</p>
<pre><code>void ProzessStarter::starteProzess( string p_pfad ) {
    STARTUPINFO si;
    PROCESS_INFORMATION pi;

    ZeroMemory( &amp;si, sizeof(si) );
    si.cb = sizeof(si);
    ZeroMemory( &amp;pi, sizeof(pi) );

	si.dwFlags = STARTF_USESHOWWINDOW;

       [i]// EGAL WELCHES!!![/i]
       [b]si.wShowWindow = SW_SHOWMINNOACTIVE;[/b]
       [b]si.wShowWindow = SW_MINIMIZE;[/b]
       [i]// EGAL WELCHES!!! - ENDE[/i]

	char* l_temp = new char[p_pfad.length() + 1];
	strcpy(l_temp, p_pfad.c_str());

    // Start the child process. 
    if( !CreateProcess( NULL,   // No module name (use command line)
		l_temp,        // Command line
        NULL,           // Process handle not inheritable
        NULL,           // Thread handle not inheritable
        TRUE,          // Set handle inheritance to FALSE
        0,              // No creation flags
        NULL,           // Use parent's environment block
        NULL,           // Use parent's starting directory 
        &amp;si,            // Pointer to STARTUPINFO structure
        &amp;pi )           // Pointer to PROCESS_INFORMATION structure
    )

    // Close process and thread handles. 
    delete l_temp;
    CloseHandle( pi.hProcess );
    CloseHandle( pi.hThread );
}
</code></pre>
<p>Wenn ich jetzt bsw. Teamspeak (TS2) starten will, dann sieht man, dass sich TS öffnet und dann minimiert. Notepad tut das nicht, das geht gleich minimiert auf. Da ich TS parallel zu einem starten möchte (per Logitech G15) ist das kurze Aktivieren des TS-Fensters schXXXe, weil dabei aus dem Spiel heraus gewechselt wird.<br />
xfire verhält sich änlich, nur dass es den Focus nicht einmal mehr abgibt.</p>
<p>Habt Ihr eine Idee, kann man einer Anwendung soetwas evtl. auch anders bebringen?!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/182139/anwendung-will-nicht-minimiert-inaktiv-starten-createprocess</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 14:50:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/182139.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 21 May 2007 19:43:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anwendung will nicht minimiert&#x2F;inaktiv starten - CreateProcess on Mon, 21 May 2007 19:44:41 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Ich habe jetzt ein neues CreateProcess-Problem, wobei ich mir nicht sicher bin, ob es wirklich an meinem Aufruf liegt.<br />
Der Code ist wie folgt:</p>
<pre><code>void ProzessStarter::starteProzess( string p_pfad ) {
    STARTUPINFO si;
    PROCESS_INFORMATION pi;

    ZeroMemory( &amp;si, sizeof(si) );
    si.cb = sizeof(si);
    ZeroMemory( &amp;pi, sizeof(pi) );

	si.dwFlags = STARTF_USESHOWWINDOW;

       [i]// EGAL WELCHES!!![/i]
       [b]si.wShowWindow = SW_SHOWMINNOACTIVE;[/b]
       [b]si.wShowWindow = SW_MINIMIZE;[/b]
       [i]// EGAL WELCHES!!! - ENDE[/i]

	char* l_temp = new char[p_pfad.length() + 1];
	strcpy(l_temp, p_pfad.c_str());

    // Start the child process. 
    if( !CreateProcess( NULL,   // No module name (use command line)
		l_temp,        // Command line
        NULL,           // Process handle not inheritable
        NULL,           // Thread handle not inheritable
        TRUE,          // Set handle inheritance to FALSE
        0,              // No creation flags
        NULL,           // Use parent's environment block
        NULL,           // Use parent's starting directory 
        &amp;si,            // Pointer to STARTUPINFO structure
        &amp;pi )           // Pointer to PROCESS_INFORMATION structure
    )

    // Close process and thread handles. 
    delete l_temp;
    CloseHandle( pi.hProcess );
    CloseHandle( pi.hThread );
}
</code></pre>
<p>Wenn ich jetzt bsw. Teamspeak (TS2) starten will, dann sieht man, dass sich TS öffnet und dann minimiert. Notepad tut das nicht, das geht gleich minimiert auf. Da ich TS parallel zu einem starten möchte (per Logitech G15) ist das kurze Aktivieren des TS-Fensters schXXXe, weil dabei aus dem Spiel heraus gewechselt wird.<br />
xfire verhält sich änlich, nur dass es den Focus nicht einmal mehr abgibt.</p>
<p>Habt Ihr eine Idee, kann man einer Anwendung soetwas evtl. auch anders bebringen?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1289408</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1289408</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 21 May 2007 19:44:41 GMT</pubDate></item><item><title><![CDATA[Reply to Anwendung will nicht minimiert&#x2F;inaktiv starten - CreateProcess on Mon, 21 May 2007 21:05:15 GMT]]></title><description><![CDATA[<p>Hm glaube das liegt an der Implemenation der Anwendung selbst. Schonmal <em>SW_HIDE</em> probiert (ggf. anschließend mit</p>
<pre><code class="language-cpp">ShowWindow(FindWindow(...), SW_MINIMIZE);
</code></pre>
<p>nachträglich minimieren) ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1289452</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1289452</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Mon, 21 May 2007 21:05:15 GMT</pubDate></item><item><title><![CDATA[Reply to Anwendung will nicht minimiert&#x2F;inaktiv starten - CreateProcess on Tue, 22 May 2007 05:04:13 GMT]]></title><description><![CDATA[<p>Die Komibnation hatte ich noch nicht. Aber HIDE klappte schon nicht:<br />
Notepad war nur im Taskmanager zu sehen, TS ging normal auf. Dann bringt das MINIMIZE hinterher vermutlich auch nichts mehr.<br />
Noch eine Idee? An TS-Systems habe ich schon geschrieben....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1289521</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1289521</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 22 May 2007 05:04:13 GMT</pubDate></item></channel></rss>