EnableGestures (coredll)
Last changed: -203.141.146.233

.
Summary
This function enables one or more touch gestures for a window or application process.

hwnd

in Specifies the window to enable gestures for. If you set scope to TGF_SCOPE_PROCESS, the function ignores this parameter.

TGFflags

in Specifies the gestures to enable.

scope

in Specifies the scope of this function. Set to TGF_SCOPE_WINDOW to enable gestures for the window indicated by hwnd. Set to TGF_SCOPE_PROCESS to enable gestures for the application process.

C# Signature:

[DllImport("coredll.dll", SetLastError=true)]
public static extern bool EnableGestures(IntPtr hwnd, UInt64 TGFflags, uint scope);

VB Signature:

Declare Function EnableGestures Lib "coredll.dll" (TODO) As TODO

User-Defined Types:

    public const UInt64 TGF_GID_BEGIN                = 0x0000000000000002;
    public const UInt64 TGF_GID_END                  = 0x0000000000000008;
    public const UInt64 TGF_GID_PAN                  = 0x0000000000000100;
    public const UInt64 TGF_GID_ROTATE               = 0x0000000000000200;
    public const UInt64 TGF_GID_SCROLL               = 0x0000000000001000;
    public const UInt64 TGF_GID_HOLD                 = 0x0000000000002000;
    public const UInt64 TGF_GID_SELECT               = 0x0000000000004000;
    public const UInt64 TGF_GID_DOUBLESELECT         = 0x0000000000008000;
    public const UInt64 TGF_GID_LAST                 = 0x0000000000008000;
    public const UInt64 TGF_GID_MAX                  = 0x8000000000000000;

    public const uint TGF_SCOPE_WINDOW               = 0;
    public const uint TGF_SCOPE_PROCESS              = 1;

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

You need to capture the WM_GESTURE windows message

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation