Methods and systems for instrumenting a COM object are disclosed. A
request from a client for creating a COM object is intercepted and a
wrapper object corresponding to the requested COM object is generated.
The wrapper object implements a universal interface with a plurality of
virtual functions each indexed by a number corresponding to an index
number of a method associated with an interface of the requested COM
object.