Skip to content

Commit f4a4674

Browse files
committed
Code Quality: Replace Vanara with CsWin32
1 parent 2d2e891 commit f4a4674

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Files.App.CsWin32/NativeMethods.txt

+1
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,4 @@ IApplicationDestinations
156156
ApplicationDestinations
157157
IApplicationDocumentLists
158158
ApplicationDocumentLists
159+
IApplicationActivationManager

src/Files.App/Utils/Shell/LaunchHelper.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.IO;
77
using Vanara.PInvoke;
88
using Vanara.Windows.Shell;
9+
using Windows.Win32.UI.Shell;
910

1011
namespace Files.App.Utils.Shell
1112
{
@@ -16,12 +17,12 @@ public static class LaunchHelper
1617
{
1718
public static void LaunchSettings(string page)
1819
{
19-
var appActiveManager = new Shell32.IApplicationActivationManager();
20+
var appActiveManager = new IApplicationActivationManager();
2021

2122
appActiveManager.ActivateApplication(
2223
"windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel",
2324
page,
24-
Shell32.ACTIVATEOPTIONS.AO_NONE,
25+
ACTIVATEOPTIONS.AO_NONE,
2526
out _);
2627
}
2728

0 commit comments

Comments
 (0)