Techniques for monitoring usage of a dynamically bound method of a software object
AssigneeSophos Limited
InventorTzu-yi Lin
Life of this patent
Estimating the term…
Loading patent…
AssigneeSophos Limited
InventorTzu-yi Lin
Estimating the term…
In example embodiments, techniques are provided to monitor usage of a dynamically bound method (e.g., COM interface) of a software object (e.g., COM object). A copy of a virtual method table for the software object is created, wherein the virtual method table includes a method pointer to the dynamically bound method. The virtual method table is then modified to change the method pointer to an address of a hook function. In response to a call to the dynamically bound method, the hook function is called using the changed method pointer in the modified virtual method table. The hook function determines an address of the software object using a reference variable, uses the address of the software object to access the saved copy of the virtual method table, and calls the dynamically bound method using the method pointer from the saved copy of the virtual method table.
A method for monitoring usage of a dynamically bound method of a software object, comprising:
An apparatus for monitoring usage of a dynamically bound method of a software object, comprising:
A non-transitory computer readable medium having software encoded thereon, the software when executed by one or more computing devices operable to:
Dependencies are inferred from the claim text.