forked from microsoft/PowerToys
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mouse Jump] Merge branch 'main' into dev/mikeclayton/mouse-jump (mic…
- Loading branch information
Showing
17 changed files
with
254 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright (c) Microsoft Corporation | ||
// The Microsoft Corporation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace RegistryPreview | ||
{ | ||
// Workaround for File Pickers that don't work while running as admin, per: | ||
// https://github.com/microsoft/WindowsAppSDK/issues/2504 | ||
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] | ||
public struct FileName | ||
{ | ||
public int StructSize; | ||
public IntPtr HwndOwner; | ||
public IntPtr Instance; | ||
public string Filter; | ||
public string CustomFilter; | ||
public int MaxCustFilter; | ||
public int FilterIndex; | ||
public string File; | ||
public int MaxFile; | ||
public string FileTitle; | ||
public int MaxFileTitle; | ||
public string InitialDir; | ||
public string Title; | ||
public int Flags; | ||
public short FileOffset; | ||
public short FileExtension; | ||
public string DefExt; | ||
public IntPtr CustData; | ||
public IntPtr Hook; | ||
public string TemplateName; | ||
public IntPtr PtrReserved; | ||
public int Reserved; | ||
public int FlagsEx; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.