C# Class CsDebugScript.Engine.Debuggers.DbgEngDllHelpers.ProcessSwitcher

Used for scoped process switching. using (var switcher = new ProcessSwitcher(process)) { // Invoke DbgEng.dll interface function } Use this class for accessing process information from DbgEng.dll interfaces to insure correct process information access. For performance reasons, after using scope, previous process won't be set until it is needed. Always use this class to insure correctness.
Inheritance: IDisposable
Show file Open project: southpolenator/WinDbgCs Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ProcessSwitcher ( StateCache stateCache, Process process ) : System

Initializes a new instance of the ProcessSwitcher class.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

ProcessSwitcher() public method

Initializes a new instance of the ProcessSwitcher class.
public ProcessSwitcher ( StateCache stateCache, Process process ) : System
stateCache StateCache The state cache.
process Process The process.
return System