UtilUIAutomationPauseProcess(Int32) Method
Pauses the execution of all the threads of the specified process.
Namespace: DevCase.Core.Diagnostics.ProcessesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
No code example is currently available or this language may not be supported.
- pid Int32
-
The process id. (PID).
PauseProcessObject
The return value is a collection of openthread-handles to the thread handles of the process.
An openthread-handle could be used to suspend, resume or terminate a thread that the openthread-handle refers to.
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.