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
1616 /// </summary>
1717 public static class LaunchHelper
1818 {
19- public static void LaunchSettings ( string page )
19+ public unsafe static void LaunchSettings ( string page )
2020 {
21- var appActiveManager = new IApplicationActivationManager ( ) ;
21+ using ComPtr < IApplicationActivationManager > pApplicationActivationManager = default ;
22+ pApplicationActivationManager . CoCreateInstance < Shell32 . ApplicationActivationManager > ( ) ;
2223
23- appActiveManager . ActivateApplication (
24+ pApplicationActivationManager . Get ( ) -> ActivateApplication (
2425 "windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel" ,
2526 page ,
2627 ACTIVATEOPTIONS . AO_NONE ,
You can’t perform that action at this time.
0 commit comments