UtilUIAutomationResumeProcess Method
Resumes the execution of all the threads for the specified process.
After resuming the threads of a process, call the
Dispose method
of the
ppo parameter to close their openthread-handles.
To manually close an openthread-handle, call
CloseHandle(IntPtr) function.
This is a code example.
No code example is currently available or this language may not be supported.
' Create and run a CMD process.
Dim p As New Process
p.StartInfo.FileName = "cmd.exe"
p.StartInfo.Arguments = "/C ""Dir /B /S /A C:\*"""
p.Start()
Thread.Sleep(2000) ' Let the CMD run the job for some seconds...
' Pause the process.
Using ppo As PauseProcessObject = UIAutomationUtil.PauseProcess(p.Id)
' Wait 5 seconds to let you observe that the process is paused...
Thread.Sleep(5000)
' Resume the process.
UIAutomationUtil.ResumeProcess(ppo)
End Using
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.