File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/libraries/System.Diagnostics.Process/tests Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ private unsafe int RunWithInvalidHandles(ProcessStartInfo startInfo)
157157 // As soon as SafeProcessHandle.WaitForExit* are implemented (#126293), we can use them instead.
158158 using Process process = Process . GetProcessById ( processInfo . dwProcessId ) ;
159159
160- if ( ResumeThread ( processInfo . hThread ) == - 1 )
160+ if ( Interop . Kernel32 . ResumeThread ( processInfo . hThread ) == 0xFFFFFFFF )
161161 {
162162 throw new Win32Exception ( ) ;
163163 }
@@ -183,9 +183,6 @@ private unsafe int RunWithInvalidHandles(ProcessStartInfo startInfo)
183183 }
184184 }
185185
186- [ LibraryImport ( Interop . Libraries . Kernel32 ) ]
187- private static partial int ResumeThread ( nint hThread ) ;
188-
189186 private static unsafe string GetSafeFileHandleId ( SafeFileHandle handle )
190187 {
191188 const int MaxPath = 32_767 ;
Original file line number Diff line number Diff line change 7171 Link =" Common\Interop\Windows\Kernel32\Interop.SetConsoleCtrlHandler.cs" />
7272 <Compile Include =" $(CommonPath)Interop\Windows\Kernel32\Interop.GetFinalPathNameByHandle.cs"
7373 Link =" Common\Interop\Windows\Kernel32\Interop.GetFinalPathNameByHandle.cs" />
74+ <Compile Include =" $(CommonPath)Interop\Windows\Kernel32\Interop.ResumeThread.cs"
75+ Link =" Common\Interop\Windows\Kernel32\Interop.ResumeThread.cs" />
7476 <!-- Helpers -->
7577 <Compile Include =" $(CommonTestPath)TestUtilities\System\WindowsTestFileShare.cs" Link =" Common\TestUtilities\System\WindowsTestFileShare.cs" />
7678 </ItemGroup >
You can’t perform that action at this time.
0 commit comments