Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the source of the input message.
Syntax
BOOL GetCurrentInputMessageSource(
[out] INPUT_MESSAGE_SOURCE *inputMessageSource
);
Parameters
[out] inputMessageSource
The INPUT_MESSAGE_SOURCE structure that holds the device type and the ID of the input message source.
Note deviceType in INPUT_MESSAGE_SOURCE is set to IMDT_UNAVAILABLE when SendMessage is used to inject input (system generated or through messages such as WM_PAINT). This remains true until SendMessage returns.
Return value
If this function succeeds, it returns TRUE. Otherwise, it returns FALSE. To retrieve extended error information, call the GetLastError function.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | winuser.h |
Library | User32.lib |
DLL | User32.dll |
API set | ext-ms-win-rtcore-ntuser-wmpointer-l1-1-0 (introduced in Windows 10, version 10.0.14393) |