RE: [GD-Windows] GetAsyncKeyState / DI
Brought to you by:
vexxed72
From: <cas...@ya...> - 2002-11-06 18:10:17
|
Wayne Coles wrote: > Unfortunately the remarks section inside the MSDN documentation go on to > say: > > "Although the least significant bit of the return value indicates whether > the key has been pressed since the last query, due to the pre-emptive > multitasking nature of Windows, another application can call > GetAsyncKeyState and receive the "recently pressed" bit instead of your > application. 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." > > So you can't really rely upon this bit being set correctly. Exactly, that's what I meant, the interface of GetAsyncKeyState is nice, but the real behaviour is not. Ignacio Castaño cas...@ya... _______________________________________________________________ Yahoo! Messenger Nueva versión: Webcam, voz, y mucho más ¡Gratis! Descárgalo ya desde http://messenger.yahoo.es |