
The primary purpose of this function is to create an environment suitable for exe-
cuting the tool, gleaning the desired data from the tool via integration routines, and
returning the data via the collection interface.The way this is all accomplished will now
be explored.
Lines 14 through 16 validate the arguments passed to the Execute method, as should
always be done for COM interfaces.
Lines 20 through 25 set up the well-known argv and argc arguments that are neces-
sary to call the tool’s rpcdump_main routine.The argv array that is built in these lines
looks like this:
[0] The path to the module, for example. "C:\\rpcdump.exe"
[1] Target host name, ...