Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

DisableGestures (coredll)
 

coredll is for smart devices, not desktop Windows. Therefore, this information only applies to code using the .NET Compact Framework. To see if information for DisableGestures in other DLLs exists, click on Find References to the right.

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

hwnd

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

TGFflags

in Specifies the gestures to disable. The following flags are supported for the core default gestures.

scope

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

return

Returns true if function succeeds; otherwise, false. To retrieve extended error information, call GetLastError

C# Signature:

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

VB Signature:

Declare Function DisableGestures 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_DOUBLESELECT         = 0x0000000000008000;
    public const UInt64 TGF_GID_LAST             = 0x0000000000008000;
    public const UInt64 TGF_GID_MAX              = 0x8000000000000000;

    public const uint TGF_SCOPE_WINDOW           = 0x0000;
    public const uint TGF_SCOPE_PROCESS          = 0x0001;

Alternative Managed API:

None that I know of

Notes:

a godsend for backwards portability

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation

Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions