<?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 GetCurrentProcess()]]></title><description><![CDATA[<p>Hallo - ich nochmal.</p>
<p>Ich rufe GetCurrentProcess() um den Prozess Handle zu erhalten.<br />
Leider wird nur 0xffffffff zurückgegeben. Der letzte errorcode war #2 (The system cannot find the file specified.), was sicherlich nichts damit zu tun hat.</p>
<p>Der Aufruf erfolgt aus dem main thread.<br />
Ich brauche den handle übrigens für GetProcessMemoryInfo(...).</p>
<p>Danke für eure Hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/196423/problem-mit-getcurrentprocess</link><generator>RSS for Node</generator><lastBuildDate>Thu, 25 Jun 2026 23:51:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/196423.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 29 Oct 2007 16:01:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit GetCurrentProcess() on Mon, 29 Oct 2007 16:01:57 GMT]]></title><description><![CDATA[<p>Hallo - ich nochmal.</p>
<p>Ich rufe GetCurrentProcess() um den Prozess Handle zu erhalten.<br />
Leider wird nur 0xffffffff zurückgegeben. Der letzte errorcode war #2 (The system cannot find the file specified.), was sicherlich nichts damit zu tun hat.</p>
<p>Der Aufruf erfolgt aus dem main thread.<br />
Ich brauche den handle übrigens für GetProcessMemoryInfo(...).</p>
<p>Danke für eure Hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1394215</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1394215</guid><dc:creator><![CDATA[sqrt(-1)]]></dc:creator><pubDate>Mon, 29 Oct 2007 16:01:57 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit GetCurrentProcess() on Mon, 29 Oct 2007 16:07:21 GMT]]></title><description><![CDATA[<p>Lies die Dokumentation!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1394217</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1394217</guid><dc:creator><![CDATA[mr]]></dc:creator><pubDate>Mon, 29 Oct 2007 16:07:21 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit GetCurrentProcess() on Mon, 29 Oct 2007 16:09:23 GMT]]></title><description><![CDATA[<p>sqrt(-1) schrieb:</p>
<blockquote>
<p>Ich rufe GetCurrentProcess() um den Prozess Handle zu erhalten.<br />
Leider wird nur 0xffffffff zurückgegeben.</p>
</blockquote>
<p>das ist richtig so. GetCurrentProcess und GetCurrentThread, etc, geben (HANDLE)-1 zurück. funktionen, die ein handle erwarten, wie z.b. SuspendThread usw., erkennen anhand dieses 'magic values', dass sie selber gemeint sind.<br />
<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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1394221</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1394221</guid><dc:creator><![CDATA[Winnie the Pooh]]></dc:creator><pubDate>Mon, 29 Oct 2007 16:09:23 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit GetCurrentProcess() on Mon, 29 Oct 2007 16:10:48 GMT]]></title><description><![CDATA[<p>Lese eben dass der Pseudohandle -1 gezielt zurückgegeben wird.</p>
<p>Hat sich also erledigt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1394222</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1394222</guid><dc:creator><![CDATA[sqrt(-1)]]></dc:creator><pubDate>Mon, 29 Oct 2007 16:10:48 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit GetCurrentProcess() on Mon, 29 Oct 2007 16:14:33 GMT]]></title><description><![CDATA[<p>Jaja, Asche über mein Haupt! <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1394225</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1394225</guid><dc:creator><![CDATA[sqrt(-1)]]></dc:creator><pubDate>Mon, 29 Oct 2007 16:14:33 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit GetCurrentProcess() on Mon, 29 Oct 2007 16:45:28 GMT]]></title><description><![CDATA[<p>wie peinlich <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/1394236</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1394236</guid><dc:creator><![CDATA[ExitThread(-1)]]></dc:creator><pubDate>Mon, 29 Oct 2007 16:45:28 GMT</pubDate></item></channel></rss>