<?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[ShellExecute ignoriert nShowCmd und CreateProcess meinen Parameter]]></title><description><![CDATA[<p>Eigentlich ganz trivial: Ich möchte firefox minimiert mit einer URL als Parameter starten.</p>
<p>Mit ShellExecute wird jedoch mein SW_HIDE oder SW_MINIMIZE einfach ignoriert und es startet ganz normal. Wieso? Da es nicht zwischendurch den Fokus an sich reißen soll kommen auch HWND spielereien nich in Frage - oder gäbe es da noch einen weg?</p>
<p>Zweiter Versuch mit CreateProcess: Hier wird mein Parameter in Form der URL nicht angenommen (nein auch nicht als lpCommandLine), was vielleicht daran liegt dass das Format bei firefox &quot;.exe <a href="http://www.bla.de" rel="nofollow">www.bla.de</a>&quot; ist...? Eine weiter Sache: Bei ShellExecute etc. kann ich registrierte Anwendungen ohne Pfad direkt starten (also z.B nur &quot;firefox&quot;), bei CreateProcess bekomm ich das nicht hin, möchte mir aber gerne den Registrykram sparen. Gibt es da einen Weg?</p>
<p>Das Problem ist mir schon fast peinlich aber ich bekomm es einfach nicht hin <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Auch wenn es nicht notwendig sein sollte:</p>
<pre><code>ShellExecute(NULL, &quot;open&quot;,&quot;firefox&quot;,URL,&quot;&quot;,  SW_HIDE) ;

CreateProcess(&quot;C:\\software\\MozillaFirefox\\firefox.exe&quot;, &quot;www.google.de&quot;, NULL,NULL,false, CREATE_DEFAULT_ERROR_MODE | NORMAL_PRIORITY_CLASS, NULL,NULL,&amp;si, &amp;pi);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/71801/shellexecute-ignoriert-nshowcmd-und-createprocess-meinen-parameter</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Apr 2026 21:59:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/71801.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Apr 2004 20:37:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ShellExecute ignoriert nShowCmd und CreateProcess meinen Parameter on Wed, 21 Apr 2004 20:37:57 GMT]]></title><description><![CDATA[<p>Eigentlich ganz trivial: Ich möchte firefox minimiert mit einer URL als Parameter starten.</p>
<p>Mit ShellExecute wird jedoch mein SW_HIDE oder SW_MINIMIZE einfach ignoriert und es startet ganz normal. Wieso? Da es nicht zwischendurch den Fokus an sich reißen soll kommen auch HWND spielereien nich in Frage - oder gäbe es da noch einen weg?</p>
<p>Zweiter Versuch mit CreateProcess: Hier wird mein Parameter in Form der URL nicht angenommen (nein auch nicht als lpCommandLine), was vielleicht daran liegt dass das Format bei firefox &quot;.exe <a href="http://www.bla.de" rel="nofollow">www.bla.de</a>&quot; ist...? Eine weiter Sache: Bei ShellExecute etc. kann ich registrierte Anwendungen ohne Pfad direkt starten (also z.B nur &quot;firefox&quot;), bei CreateProcess bekomm ich das nicht hin, möchte mir aber gerne den Registrykram sparen. Gibt es da einen Weg?</p>
<p>Das Problem ist mir schon fast peinlich aber ich bekomm es einfach nicht hin <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Auch wenn es nicht notwendig sein sollte:</p>
<pre><code>ShellExecute(NULL, &quot;open&quot;,&quot;firefox&quot;,URL,&quot;&quot;,  SW_HIDE) ;

CreateProcess(&quot;C:\\software\\MozillaFirefox\\firefox.exe&quot;, &quot;www.google.de&quot;, NULL,NULL,false, CREATE_DEFAULT_ERROR_MODE | NORMAL_PRIORITY_CLASS, NULL,NULL,&amp;si, &amp;pi);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/506454</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/506454</guid><dc:creator><![CDATA[psycho7765]]></dc:creator><pubDate>Wed, 21 Apr 2004 20:37:57 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute ignoriert nShowCmd und CreateProcess meinen Parameter on Wed, 21 Apr 2004 20:46:40 GMT]]></title><description><![CDATA[<p>Es ist nicht ShellExecute was das ignoriert, sondern Firefox.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/506464</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/506464</guid><dc:creator><![CDATA[..]]></dc:creator><pubDate>Wed, 21 Apr 2004 20:46:40 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute ignoriert nShowCmd und CreateProcess meinen Parameter on Thu, 22 Apr 2004 16:11:49 GMT]]></title><description><![CDATA[<p>Hab jetzt mit Create Process wenigstens das mit dem Parameter geschafft (musste in Anführungszeichen dahin), aber hier wieder das gleiche Problem:<br />
Firefox ignoriert den wShowWindow - Flag, obwohl STARTF_USESHOWWINDOW bei dwFlags dabei ist. Es liegt nicht an mir, andere Programme werdem MIT Flag gestartet.</p>
<p>Kann man das nicht irgendwie forcieren?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/506880</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/506880</guid><dc:creator><![CDATA[psycho7765]]></dc:creator><pubDate>Thu, 22 Apr 2004 16:11:49 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute ignoriert nShowCmd und CreateProcess meinen Parameter on Thu, 22 Apr 2004 16:31:43 GMT]]></title><description><![CDATA[<p>Dazu müsstest du dich wohl mittels Hooking in FireFox einnisten und die entsprechenden Funktionsaufrufe abfangen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/506897</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/506897</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Thu, 22 Apr 2004 16:31:43 GMT</pubDate></item></channel></rss>