File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class Win32ProcessRepository extends ProcessRepository {
5151
5252 Future <String > _getExecutableName (int pid) async {
5353 final processHandle = OpenProcess (
54- PROCESS_ACCESS_RIGHTS . PROCESS_QUERY_LIMITED_INFORMATION ,
54+ PROCESS_QUERY_LIMITED_INFORMATION ,
5555 FALSE ,
5656 pid,
5757 );
@@ -93,7 +93,7 @@ class Win32ProcessRepository extends ProcessRepository {
9393 @override
9494 Future <bool > resume (int pid) async {
9595 final processHandle = OpenProcess (
96- PROCESS_ACCESS_RIGHTS . PROCESS_SUSPEND_RESUME ,
96+ PROCESS_SUSPEND_RESUME ,
9797 FALSE ,
9898 pid,
9999 );
@@ -117,7 +117,7 @@ class Win32ProcessRepository extends ProcessRepository {
117117 @override
118118 Future <bool > suspend (int pid) async {
119119 final processHandle = OpenProcess (
120- PROCESS_ACCESS_RIGHTS . PROCESS_SUSPEND_RESUME ,
120+ PROCESS_SUSPEND_RESUME ,
121121 FALSE ,
122122 pid,
123123 );
Original file line number Diff line number Diff line change @@ -102,20 +102,20 @@ class Win32 implements NativePlatform {
102102 @override
103103 Future <bool > minimizeWindow (int windowId) async {
104104 log.i ('Minimizing window with id $windowId ' );
105- ShowWindow (windowId, SHOW_WINDOW_CMD . SW_FORCEMINIMIZE );
105+ ShowWindow (windowId, SW_FORCEMINIMIZE );
106106 return true ; // [ShowWindow] return value doesn't confirm success.
107107 }
108108
109109 @override
110110 Future <bool > restoreWindow (int windowId) async {
111111 log.i ('Restoring window with id $windowId ' );
112- ShowWindow (windowId, SHOW_WINDOW_CMD . SW_RESTORE );
112+ ShowWindow (windowId, SW_RESTORE );
113113 return true ; // [ShowWindow] return value doesn't confirm success.
114114 }
115115
116116 Future <String > getExecutableName (int pid) async {
117117 final processHandle = OpenProcess (
118- PROCESS_ACCESS_RIGHTS . PROCESS_QUERY_LIMITED_INFORMATION ,
118+ PROCESS_QUERY_LIMITED_INFORMATION ,
119119 FALSE ,
120120 pid,
121121 );
You can’t perform that action at this time.
0 commit comments