pythoncom.ObjectFromAddress

PyIUnknown = ObjectFromAddress(address, iid )

Returns a COM object given its address in memory.

Parameters

address : int

The address which holds a COM object

iid=IUnknown : PyIID

The IID to query

Return Value

This method is useful for applications which return objects via non-standard mechanisms - eg, Windows Explorer allows you to send a specific message to the explorer window and the result will be the address of an object Explorer implements. This method allows you to recover the object from that address.