<?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[GetAsyncKeyState()]]></title><description><![CDATA[<blockquote>
<p>Although the least significant bit of the return value indicates whether the key has been pressed since the last query, due to the <strong>pre-emptive multitasking nature</strong> of Windows, another application can call GetAsyncKeyState and receive the &quot;recently pressed&quot; bit instead of your application. <strong>The behavior of the least significant bit of the return value is retained strictly for compatibility with 16-bit Windows applications (which are non-preemptive) and should not be relied upon.</strong></p>
</blockquote>
<p>Ich kann mich also nicht darauf verlassen, mit GetAsyncKeyState jemals Auskunft über einen Tastendruck zu erhalten, weil mir immer eine Anwendung zuvorkommen könnte? Stimmt das? Ich verstehe nämlich nicht genau, was es mit den fett markieren Stellen auf sich hat, vllt. kann mir das jemand kurz erklären.</p>
<p>Und wenn dem so ist, wird GetAsyncKeyState() damit nicht zu einer eher... unzuverlässigen Funktion? Was kann man stattdessen nehmen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/222041/getasynckeystate</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 21:32:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/222041.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 06 Sep 2008 19:05:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GetAsyncKeyState() on Sat, 06 Sep 2008 19:05:01 GMT]]></title><description><![CDATA[<blockquote>
<p>Although the least significant bit of the return value indicates whether the key has been pressed since the last query, due to the <strong>pre-emptive multitasking nature</strong> of Windows, another application can call GetAsyncKeyState and receive the &quot;recently pressed&quot; bit instead of your application. <strong>The behavior of the least significant bit of the return value is retained strictly for compatibility with 16-bit Windows applications (which are non-preemptive) and should not be relied upon.</strong></p>
</blockquote>
<p>Ich kann mich also nicht darauf verlassen, mit GetAsyncKeyState jemals Auskunft über einen Tastendruck zu erhalten, weil mir immer eine Anwendung zuvorkommen könnte? Stimmt das? Ich verstehe nämlich nicht genau, was es mit den fett markieren Stellen auf sich hat, vllt. kann mir das jemand kurz erklären.</p>
<p>Und wenn dem so ist, wird GetAsyncKeyState() damit nicht zu einer eher... unzuverlässigen Funktion? Was kann man stattdessen nehmen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1577793</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1577793</guid><dc:creator><![CDATA[confus0r]]></dc:creator><pubDate>Sat, 06 Sep 2008 19:05:01 GMT</pubDate></item><item><title><![CDATA[Reply to GetAsyncKeyState() on Sat, 06 Sep 2008 19:36:14 GMT]]></title><description><![CDATA[<p>Du solltest vielleicht mal schreiben, was Du vorhast... natürlich ist Get*Async*... sehr unzuverlässig... da es ja ein &quot;zufälliger&quot; Zeitpunkt ist und somit schon mal von prinzip her &quot;unzuverlässig&quot; ist...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1577809</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1577809</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sat, 06 Sep 2008 19:36:14 GMT</pubDate></item></channel></rss>