AttachProcessByID (IHTTPAnalyzerStandalone)
Top  Previous  Next

Syntax
blSuccess=bject .AttachProcessByID(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 AttachProcessByID method is used to find a process by its ID and attach HTTPAnalyzer stand-alone to it . Anyway, HTTPAnalyzer stand-alone will capture and monitor HTTP/HTTPs traffic from the process. You can use the method to attach multi-processes.

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

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