pythoncom.CoGetInterfaceAndReleaseStream

PyIUnknown = CoGetInterfaceAndReleaseStream(stream, iid )

Unmarshals a buffer containing an interface pointer and releases the stream when an interface pointer has been marshaled from another thread to the calling thread.

Parameters

stream : PyIStream

The stream to unmarshal the object from.

iid : PyIID

The IID if the interface to unmarshal.