Skip to content

Latest commit

 

History

History
92 lines (72 loc) · 3.68 KB

nf-winuser-initializetouchinjection.md

File metadata and controls

92 lines (72 loc) · 3.68 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name req.apiset
NF:winuser.InitializeTouchInjection
InitializeTouchInjection function (winuser.h)
Configures the touch injection context for the calling application and initializes the maximum number of simultaneous contacts that the app can inject.
InitializeTouchInjection
InitializeTouchInjection function [Windows Touch]
input_touchinjection.initializetouchinjection
touch_injection.initializetouchinjection
winuser/InitializeTouchInjection
input_touchinjection\initializetouchinjection.htm
controls
79cc2a05-d8ee-4d87-9c7b-fa7d5354b04f
12/05/2018
InitializeTouchInjection, InitializeTouchInjection function [Windows Touch], input_touchinjection.initializetouchinjection, touch_injection.initializetouchinjection, winuser/InitializeTouchInjection
winuser.h
Windows
Windows 8 [desktop apps only]
Windows Server 2012 [desktop apps only]
User32.lib
User32.dll
Windows
19H1
InitializeTouchInjection
winuser/InitializeTouchInjection
c++
APIRef
kbSyntax
DllExport
user32.dll
API-MS-Win-RTCore-NTUser-WMPointer-l1-1-0.dll
MinUser.dll
API-MS-Win-RTCore-NTUser-WMPointer-l1-1-1.dll
API-Ms-Win-RTCore-NTUser-WMPointer-L1-1-2.dll
API-MS-Win-RTCore-NTUser-WMPointer-L1-1-3.dll
InitializeTouchInjection
ext-ms-win-rtcore-ntuser-wmpointer-l1-1-0 (introduced in Windows 10, version 10.0.14393)

InitializeTouchInjection function

-description

Configures the touch injection context for the calling application and initializes the maximum number of simultaneous contacts that the app can inject.

Note  InitializeTouchInjection must precede any call to InjectTouchInput.

 

-parameters

-param maxCount [in]

The maximum number of touch contacts.

The maxCount parameter must be greater than 0 and less than or equal to MAX_TOUCH_COUNT (256) as defined in winuser.h.

-param dwMode [in]

The contact visualization mode.

The dwMode parameter must be TOUCH_FEEDBACK_DEFAULT, TOUCH_FEEDBACK_INDIRECT, or TOUCH_FEEDBACK_NONE.

-returns

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE. To get extended error information, call GetLastError.

-remarks

If TOUCH_FEEDBACK_DEFAULT is set, the injected touch feedback may get suppressed by the end-user settings in the Pen and Touch control panel.

If TOUCH_FEEDBACK_INDIRECT is set, the injected touch feedback overrides the end-user settings in the Pen and Touch control panel.

If TOUCH_FEEDBACK_INDIRECT or TOUCH_FEEDBACK_NONE are set, touch feedback provided by applications and controls may not be affected.

-see-also

Functions