-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Settings] [VCM] Allow selecting a picture for VCM camera mute when r…
…unning elevated (#24247) * Fix the issue of not being able to select an image for VCM Camera mute while PowerToys is running elevated. * change the buffer size for Path and filename * move DLL import to native methods file * Adding comment to rember to move back to WinUI3 when it is fixed * making Dll Import methods internal * changes from comments * fix new c# errors * Remove async
- Loading branch information
Showing
4 changed files
with
68 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// 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.Diagnostics.CodeAnalysis; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace Microsoft.PowerToys.Settings.UI.Helpers | ||
{ | ||
[SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1401:FieldsMustBePrivate", Justification = "Reviewed.")] | ||
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] | ||
public class OpenFileName | ||
{ | ||
public int StructSize; | ||
public IntPtr Hwnd = IntPtr.Zero; | ||
public IntPtr Hinst = IntPtr.Zero; | ||
public string Filter; | ||
public string CustFilter; | ||
public int CustFilterMax; | ||
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 FileExtMax; | ||
public string DefExt; | ||
public int CustData; | ||
public IntPtr Hook = IntPtr.Zero; | ||
public string Template; | ||
} | ||
} |
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