Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GetInputState function

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

Syntax


BOOL WINAPI GetInputState(void);

Parameters

This function has no parameters.

Return value

Type:

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

See also

Reference
GetQueueStatus
Conceptual
Messages and Message Queues

 

 

Show:
© 2017 Microsoft