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.

GET_DEVICE_LPARAM macro

Retrieves the input device type from the specified LPARAM value.

Syntax


WORD GET_DEVICE_LPARAM(
   LPARAM lParam
);

Parameters

lParam

The value to be converted.

Return value

The return value is the bit of the high-order word representing the input device type. It can be one of the following values.

Return code/valueDescription
FAPPCOMMAND_KEY
0

User pressed a.

FAPPCOMMAND_MOUSE
0x8000

User clicked a mouse button.

FAPPCOMMAND_OEM
0x1000

An unidentified hardware source generated the event. It could be a mouse or a keyboard event.

 

Remarks

This macro is identical to the GET_MOUSEORKEY_LPARAM macro.

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)

See also

Reference
GET_MOUSEORKEY_LPARAM
Conceptual
Mouse Input

 

 

Show:
© 2016 Microsoft