DetachProcessByID (IHTTPAnalyzerStandalone)
Top  Previous  Next

Syntax
blSuccess=object .DetachProcessByID(ProcessID as long )

Arguments
ProcessID A Long value which contains the ID of the Process to be attached to.

Return Type
A Boolean value. If the operation succeeds, returns will be true. If the operation fails, returns will be false.

Description
The DetachProcessByID method is used to find a process by its ID and detach HTTPAnalyzer stand-alone to it . Anyway, HTTPAnalyzer stand-alone no longer capture and monitor HTTP/HTTPs traffic from the process.

Examples
C# example:
IHTTPAnalyzerStandAlone httpAnalyzer = new HTTPAnalyzerStandAloneClass();
httpAnalyzer.Visible = HTTPAnalyzerVisiblecbx.Checked;
httpAnalyzer.AttachProcessByID(Process.GetCurrentProcess().Id);
httpAnalyzer.AttachProcessByName("
IEXPLORE.exe");
httpAnalyzer.DetachProcessByID(Process.GetCurrentProcess().Id)
;


httpAnalyzer.Start();
......
httpAnalyzer.Stop();