<?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[kann mir jemand helfen dieses zu kommentieren?]]></title><description><![CDATA[<p>hallo, möchte folgenden Programmteil kommentieren, und weiss nicht so recht, wie:</p>
<pre><code class="language-cpp">STARTUPINFO si;                //wie erklärt man dieses? 
SECURITY_ATTRIBUTES saProcess; //
PROCESS_INFORMATION piProcess; //

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

saProcess.nLength = sizeof(saProcess); //
saProcess.lpSecurityDescriptor = NULL; //
saProcess.bInheritHandle = FALSE;      //
CreateProcess(strPath,NULL,&amp;saProcess,NULL,FALSE,NULL,NULL,NULL,&amp;si,&amp;piProcess); 
//Erstelle den Process aus dem String(Pfad) strPath
WaitForSingleObject(piProcess.hProcess,INFINITE); //warte bis Process beendet wurde
</code></pre>
<p>kann mir da jemand helfen, nicht dass ich zu faul dafür bin, habe die Suche und FAQ gequält, aber irgendwie nix brauchbares gefunden, und da ich im englischen noch ne ziemliche Niete bin, würde ich mich für Hilfe ganz herzlich bedanken</p>
<p>Gruß Sanne</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/96684/kann-mir-jemand-helfen-dieses-zu-kommentieren</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Apr 2026 02:50:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/96684.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Jan 2005 11:36:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to kann mir jemand helfen dieses zu kommentieren? on Tue, 04 Jan 2005 11:36:26 GMT]]></title><description><![CDATA[<p>hallo, möchte folgenden Programmteil kommentieren, und weiss nicht so recht, wie:</p>
<pre><code class="language-cpp">STARTUPINFO si;                //wie erklärt man dieses? 
SECURITY_ATTRIBUTES saProcess; //
PROCESS_INFORMATION piProcess; //

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

saProcess.nLength = sizeof(saProcess); //
saProcess.lpSecurityDescriptor = NULL; //
saProcess.bInheritHandle = FALSE;      //
CreateProcess(strPath,NULL,&amp;saProcess,NULL,FALSE,NULL,NULL,NULL,&amp;si,&amp;piProcess); 
//Erstelle den Process aus dem String(Pfad) strPath
WaitForSingleObject(piProcess.hProcess,INFINITE); //warte bis Process beendet wurde
</code></pre>
<p>kann mir da jemand helfen, nicht dass ich zu faul dafür bin, habe die Suche und FAQ gequält, aber irgendwie nix brauchbares gefunden, und da ich im englischen noch ne ziemliche Niete bin, würde ich mich für Hilfe ganz herzlich bedanken</p>
<p>Gruß Sanne</p>
]]></description><link>https://www.c-plusplus.net/forum/post/686449</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686449</guid><dc:creator><![CDATA[Sanne]]></dc:creator><pubDate>Tue, 04 Jan 2005 11:36:26 GMT</pubDate></item><item><title><![CDATA[Reply to kann mir jemand helfen dieses zu kommentieren? on Tue, 04 Jan 2005 12:35:44 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">STARTUPINFO si;                //
SECURITY_ATTRIBUTES saProcess; //   ?
PROCESS_INFORMATION piProcess; //   ?

ZeroMemory(&amp;si, sizeof(si));   //erstellt Member der STARTUPINFO- Struktur.
si.cb = sizeof(si);            //   

saProcess.nLength = sizeof(saProcess); //stellt die &quot;Handle- flags&quot; ein, um die Security- Attribute zu übernehmen 

saProcess.lpSecurityDescriptor = NULL; //   ?
saProcess.bInheritHandle = FALSE;      //   ?
CreateProcess(strPath,NULL,&amp;saProcess,NULL,FALSE,NULL,NULL,NULL,&amp;si,&amp;piProcess); 
//Erstelle den Prozess aus dem String(Pfad) strPath, &amp;si ist der Pointer auf die Startup- Information, und &amp;piProcess empfängt die Prozess- Informationen
WaitForSingleObject(piProcess.hProcess,INFINITE); //warte bis Prozess beendet wurde
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/686497</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686497</guid><dc:creator><![CDATA[Sanne]]></dc:creator><pubDate>Tue, 04 Jan 2005 12:35:44 GMT</pubDate></item><item><title><![CDATA[Reply to kann mir jemand helfen dieses zu kommentieren? on Tue, 04 Jan 2005 12:38:51 GMT]]></title><description><![CDATA[<p>Das Anlegen irgendwelcher Objekte und das Zuweisen von Werten kommentiert man normalerweise nicht. *g*</p>
]]></description><link>https://www.c-plusplus.net/forum/post/686503</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686503</guid><dc:creator><![CDATA[no comment]]></dc:creator><pubDate>Tue, 04 Jan 2005 12:38:51 GMT</pubDate></item><item><title><![CDATA[Reply to kann mir jemand helfen dieses zu kommentieren? on Tue, 04 Jan 2005 12:44:19 GMT]]></title><description><![CDATA[<p>wenn man es jemanden erklären muss, wie zum Beispiel nem Lehrer der das so will, dann schon, danke^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/686515</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686515</guid><dc:creator><![CDATA[Sanne]]></dc:creator><pubDate>Tue, 04 Jan 2005 12:44:19 GMT</pubDate></item><item><title><![CDATA[Reply to kann mir jemand helfen dieses zu kommentieren? on Tue, 04 Jan 2005 12:46:51 GMT]]></title><description><![CDATA[<p>Sanne schrieb:</p>
<blockquote>
<pre><code class="language-cpp">ZeroMemory(&amp;si, sizeof(si));   //erstellt Member der STARTUPINFO- Struktur.
si.cb = sizeof(si);            //
</code></pre>
</blockquote>
<p>ZeroMemory erstellt keine Member, sondern schreibt die Struktur mit Nullen voll. Die 2. Zeile initialisiertn den cb Member mit der Größe der Struktur.</p>
<p>Aber wie no comment schon sagte: du brauchst un solltest nicht alles kommentieren, da es dadurch dann nur wieder unübersichtlich wird <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/686520</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686520</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Tue, 04 Jan 2005 12:46:51 GMT</pubDate></item></channel></rss>