GetInputState function (winuser.h)

Determines whether there are mouse-button or keyboard messages in the calling thread's message queue.

Syntax

BOOL GetInputState();

Return value

Type: BOOL

If the queue contains one or more new mouse-button or keyboard messages, the return value is nonzero.

If there are no new mouse-button or keyboard messages in the queue, the return value is zero.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winuser.h (include Windows.h)
Library User32.lib
DLL User32.dll

See also

Conceptual

GetQueueStatus

Messages and Message Queues

Reference