<?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[Problem mit CreateProcess]]></title><description><![CDATA[<p>Hallo! Hab dieses Code:</p>
<pre><code class="language-cpp">PPROCESS_INFORMATION pi;
if (!CreateProcess(app_s, 0, 0, 0, 0, 0, 0, 0, 0, &amp;pi))
    throw build_error();
WaitForSingleObject(pi.hProcess, INFINITE);
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
</code></pre>
<p>Das geht aber net, denn :</p>
<blockquote>
<p>Error 4 error C2664: 'CreateProcessW' : cannot convert parameter 10 from 'PPROCESS_INFORMATION *' to 'LPPROCESS_INFORMATION'</p>
</blockquote>
<p>Hab schon in der Doku geschaut. Dort wirds so gemacht...</p>
<p>Edit: Hab mich vertippt - es muss <strong>P</strong>ROCESS_INFORMATION heißen und nicht <strong>PP</strong>ROCESS_INFORMATION...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/224486/problem-mit-createprocess</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 21:24:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/224486.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 10 Oct 2008 09:11:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit CreateProcess on Fri, 10 Oct 2008 09:14:47 GMT]]></title><description><![CDATA[<p>Hallo! Hab dieses Code:</p>
<pre><code class="language-cpp">PPROCESS_INFORMATION pi;
if (!CreateProcess(app_s, 0, 0, 0, 0, 0, 0, 0, 0, &amp;pi))
    throw build_error();
WaitForSingleObject(pi.hProcess, INFINITE);
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
</code></pre>
<p>Das geht aber net, denn :</p>
<blockquote>
<p>Error 4 error C2664: 'CreateProcessW' : cannot convert parameter 10 from 'PPROCESS_INFORMATION *' to 'LPPROCESS_INFORMATION'</p>
</blockquote>
<p>Hab schon in der Doku geschaut. Dort wirds so gemacht...</p>
<p>Edit: Hab mich vertippt - es muss <strong>P</strong>ROCESS_INFORMATION heißen und nicht <strong>PP</strong>ROCESS_INFORMATION...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1596755</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1596755</guid><dc:creator><![CDATA[khalderon]]></dc:creator><pubDate>Fri, 10 Oct 2008 09:14:47 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CreateProcess on Fri, 10 Oct 2008 09:26:41 GMT]]></title><description><![CDATA[<p>In welcher Doku hast Du denn geaschaut? Das wird es mit sicherheit *nicht* so gemacht!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1596769</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1596769</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Fri, 10 Oct 2008 09:26:41 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CreateProcess on Fri, 10 Oct 2008 09:34:56 GMT]]></title><description><![CDATA[<p>Doch, doch. Die MSDN lügt nie <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="🙂"
    /> Ich habe aber noch ein 'P' vor PROCESS_INFORMATION geschrieben...</p>
<p>Das Problem ist jetzt, dass es nie funzt. Vielleicht muss ich mal das Programm im 2. Parameter übergeben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1596774</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1596774</guid><dc:creator><![CDATA[khalderon]]></dc:creator><pubDate>Fri, 10 Oct 2008 09:34:56 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CreateProcess on Fri, 10 Oct 2008 09:48:50 GMT]]></title><description><![CDATA[<p>Zeig mir mal bitte den Link!</p>
<p>Mein Link:<br />
<a href="http://msdn.microsoft.com/en-us/library/ms682425" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms682425</a></p>
<p>Und das Beispiel ist:</p>
<pre><code class="language-cpp">LPTSTR szCmdline[] = _tcsdup(
    TEXT(&quot;\&quot;C:\\Program Files\\MyApp\&quot; -L -S&quot;));
CreateProcess(NULL, szCmdline, ...)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1596781</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1596781</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Fri, 10 Oct 2008 09:48:50 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CreateProcess on Fri, 10 Oct 2008 09:50:34 GMT]]></title><description><![CDATA[<p>ms-help://MS.MSDNQTR.v90.en/dllproc/base/creating_processes.htm</p>
<blockquote>
<p>Creating Processes<br />
The CreateProcess function creates a new process, which runs independently of the creating process. However, for simplicity, the relationship is referred to as a parent-child relationship.</p>
<p>The following code demonstrates how to create a process.</p>
<p>#include &lt;windows.h&gt;<br />
#include &lt;stdio.h&gt;<br />
#include &lt;tchar.h&gt;</p>
<p>void _tmain( int argc, TCHAR *argv[] )<br />
{<br />
STARTUPINFO si;<br />
PROCESS_INFORMATION pi;</p>
<p>ZeroMemory( &amp;si, sizeof(si) );<br />
si.cb = sizeof(si);<br />
ZeroMemory( &amp;pi, sizeof(pi) );</p>
<p>if( argc != 2 )<br />
{<br />
printf(&quot;Usage: %s [cmdline]\n&quot;, argv[0]);<br />
return;<br />
}</p>
<p>// Start the child process.<br />
if( !CreateProcess( NULL, // No module name (use command line)<br />
argv[1], // Command line<br />
NULL, // Process handle not inheritable<br />
NULL, // Thread handle not inheritable<br />
FALSE, // Set handle inheritance to FALSE<br />
0, // No creation flags<br />
NULL, // Use parent's environment block<br />
NULL, // Use parent's starting directory<br />
&amp;si, // Pointer to STARTUPINFO structure<br />
&amp;pi ) // Pointer to PROCESS_INFORMATION structure<br />
)<br />
{<br />
printf( &quot;CreateProcess failed (%d)\n&quot;, GetLastError() );<br />
return;<br />
}</p>
<p>// Wait until child process exits.<br />
WaitForSingleObject( pi.hProcess, INFINITE );</p>
<p>// Close process and thread handles.<br />
CloseHandle( pi.hProcess );<br />
CloseHandle( pi.hThread );<br />
}</p>
<p>If CreateProcess succeeds, it returns a PROCESS_INFORMATION structure containing handles and identifiers for the new process and its primary thread. The thread and process handles are created with full access rights, although access can be restricted if you specify security descriptors. When you no longer need these handles, close them by using the CloseHandle function.</p>
<p>You can also create a process using the CreateProcessAsUser or CreateProcessWithLogonW function. This allows you to specify the security context of the user account in which the process will execute.</p>
<p>Send comments about this topic to Microsoft</p>
<p>Build date: 8/15/2007</p>
</blockquote>
<p>Bist du damit zufrieden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1596785</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1596785</guid><dc:creator><![CDATA[khalderon]]></dc:creator><pubDate>Fri, 10 Oct 2008 09:50:34 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CreateProcess on Fri, 10 Oct 2008 10:03:48 GMT]]></title><description><![CDATA[<p>In dem von Dir geposteten Sample kommt kein PPROCESS_INFORMATION vor. vor.</p>
<p>Wenn PPROCESS_INFORMATION eine Struktur ist, dann sind in der Windows API meistens sofort PPPROCESS_INFORMATION definiert als Zeiger auf PROCESS_INFORMATION.</p>
<p>Dein Code ist also falsch, weil Du keinen Zeiger rauchst sondern eine ganze Struktur.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1596802</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1596802</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Fri, 10 Oct 2008 10:03:48 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CreateProcess on Fri, 10 Oct 2008 10:12:53 GMT]]></title><description><![CDATA[<p>Gut, und wie kann ich auf ERRORLEVEL zugreifen? Nach der Ausführung des Prozesses wird gesagt, dass ERRORLEVEL einen Wert bekommt. Wie kann ich ihn lesen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1596817</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1596817</guid><dc:creator><![CDATA[khalderon]]></dc:creator><pubDate>Fri, 10 Oct 2008 10:12:53 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CreateProcess on Fri, 10 Oct 2008 10:17:19 GMT]]></title><description><![CDATA[<p>GetExitCodeProcess!<br />
<a href="http://msdn.microsoft.com/en-us/library/ms683189(VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms683189(VS.85).aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1596824</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1596824</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Fri, 10 Oct 2008 10:17:19 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CreateProcess on Fri, 10 Oct 2008 10:22:36 GMT]]></title><description><![CDATA[<p>Mal schauen...<br />
ZeroMemory(&amp;pi, sizeof(pi)); &lt;- das brauche ich nicht, oder? Das Programm läuft gut auch ohne dies...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1596829</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1596829</guid><dc:creator><![CDATA[khalderon]]></dc:creator><pubDate>Fri, 10 Oct 2008 10:22:36 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CreateProcess on Fri, 10 Oct 2008 11:21:39 GMT]]></title><description><![CDATA[<p>DU brauchst alles was in dem Beispiel ist... (ist das zu fassen !?)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1596874</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1596874</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Fri, 10 Oct 2008 11:21:39 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CreateProcess on Fri, 10 Oct 2008 11:29:14 GMT]]></title><description><![CDATA[<p>Ja, schon. Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1596882</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1596882</guid><dc:creator><![CDATA[khalderon]]></dc:creator><pubDate>Fri, 10 Oct 2008 11:29:14 GMT</pubDate></item></channel></rss>