<?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[Rückgabewert von ResumeThread()]]></title><description><![CDATA[<p>Deklaration von DWORD in windef.h wie folgt:</p>
<pre><code class="language-cpp">typedef unsigned long DWORD;
</code></pre>
<p>Deklaration von ResumeThread() wie folgt:</p>
<pre><code class="language-cpp">DWORD WINAPI ResumeThread(__in  HANDLE hThread);
</code></pre>
<p>Auszug aus der MSDN zu der Funktion:</p>
<blockquote>
<p>If the function succeeds, the return value is the thread's previous suspend count.</p>
<p>If the function fails, the return value is (DWORD) -1. To get extended error information, call GetLastError.</p>
</blockquote>
<p>Folgender Code hierzu:</p>
<pre><code class="language-cpp">bool dsThread::ResumeThread()
{
  m_mutex-&gt;TryEnter();
  if ( ::ResumeThread(m_hThread) == -1 ) // COmpilerwarnung hier wegen dem Vergleich und das ja zurecht...
  {
     return false;
  }
}
</code></pre>
<p>Wie soll dieser Vergleich je funktionieren? Oder bin ich total meschugge?<br />
rya.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/230258/rückgabewert-von-resumethread</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 02:48:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/230258.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 Dec 2008 05:40:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Rückgabewert von ResumeThread() on Tue, 23 Dec 2008 05:40:14 GMT]]></title><description><![CDATA[<p>Deklaration von DWORD in windef.h wie folgt:</p>
<pre><code class="language-cpp">typedef unsigned long DWORD;
</code></pre>
<p>Deklaration von ResumeThread() wie folgt:</p>
<pre><code class="language-cpp">DWORD WINAPI ResumeThread(__in  HANDLE hThread);
</code></pre>
<p>Auszug aus der MSDN zu der Funktion:</p>
<blockquote>
<p>If the function succeeds, the return value is the thread's previous suspend count.</p>
<p>If the function fails, the return value is (DWORD) -1. To get extended error information, call GetLastError.</p>
</blockquote>
<p>Folgender Code hierzu:</p>
<pre><code class="language-cpp">bool dsThread::ResumeThread()
{
  m_mutex-&gt;TryEnter();
  if ( ::ResumeThread(m_hThread) == -1 ) // COmpilerwarnung hier wegen dem Vergleich und das ja zurecht...
  {
     return false;
  }
}
</code></pre>
<p>Wie soll dieser Vergleich je funktionieren? Oder bin ich total meschugge?<br />
rya.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1634427</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1634427</guid><dc:creator><![CDATA[_WINAPI-Terrorist]]></dc:creator><pubDate>Tue, 23 Dec 2008 05:40:14 GMT</pubDate></item><item><title><![CDATA[Reply to Rückgabewert von ResumeThread() on Tue, 23 Dec 2008 06:33:10 GMT]]></title><description><![CDATA[<p>Vergleich mit (DWORD) -1, wie es da steht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1634429</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1634429</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Tue, 23 Dec 2008 06:33:10 GMT</pubDate></item></channel></rss>