morcruise.blogg.se

Disable edge swipe windows 10
Disable edge swipe windows 10






disable edge swipe windows 10

Once you close it - swipes will be working again. IntPtr intPtr = ("Your_app").MainWindowHandle ĮdgeGestureUtil.DisableEdgeGestures(intPtr, true) Īnd that's it - edge swipes will stop working for as long as application is running and windows is active. Marshal.FinalReleaseComObject(pPropStore) Īdd that to your namespace and just call it when Form is Shown (winforms) or Window has loaded (WPF). PPropStore.SetValue(ref propKey, ref var) Hr = SHGetPropertyStoreForWindow(hwnd, ref IID_PROPERTY_STORE, ref pPropStore) Public static void DisableEdgeGestures(IntPtr hwnd, bool enable) Private static extern int SHGetPropertyStoreForWindow(IntPtr handle, ref Guid riid, ref IPropertyStore propertyStore) Void SetValue( ref PropertyKey key, ref PropVariant pv) Void GetValue( ref PropertyKey key, ref PropVariant pv) Void GetAt( uint iProp, ref PropertyKey pkey) it in other places so we make a nice dummy function to keep the compiler the warning for the whole project, it's a nice warning and we do want You can disable CS0649 in the project options but that will disable is never assigned to, and will always have its default value However this struct will give us Warning CS0649: Field Code Should Compile at warning level4 without any warnings, Throw new NotImplementedException("PropVariant " + ve.ToString()) Marshal.Copy(blobVal.Data, Result, 0, Result.Length) Private .FILETIME filetime īyte Result = new byte Public PropertyKey(Guid guid, UInt32 pid)

disable edge swipe windows 10

Private static Guid IID_PROPERTY_STORE = new Guid("886d8eeb-8cf2-4446-8d02-cdba1dbdcf99") So thanks to link Koen_R provided managed to get it working (code below is Ron Schuler's answer converted from VB to c#). Tried everything from registry/group policy changes, to dirty windows shell hacks - nothing worked. Had the same issue with our kiosk application (WIN7 PC's automatically updated to WIN 10). I know this thread is old, but couldn't find concise and clear solution anywhere.








Disable edge swipe windows 10