File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/Files.App/Utils/Shell Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,12 @@ namespace Files.App.Utils.Shell
16
16
/// </summary>
17
17
public static class LaunchHelper
18
18
{
19
- public static void LaunchSettings ( string page )
19
+ public unsafe static void LaunchSettings ( string page )
20
20
{
21
- var appActiveManager = new IApplicationActivationManager ( ) ;
21
+ using ComPtr < IApplicationActivationManager > pApplicationActivationManager = default ;
22
+ pApplicationActivationManager . CoCreateInstance < Shell32 . ApplicationActivationManager > ( ) ;
22
23
23
- appActiveManager . ActivateApplication (
24
+ pApplicationActivationManager . Get ( ) -> ActivateApplication (
24
25
"windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel" ,
25
26
page ,
26
27
ACTIVATEOPTIONS . AO_NONE ,
You can’t perform that action at this time.
0 commit comments