Name

CoGetInterfaceAndReleaseStream( )

Synopsis

Unmarshals a Python interface object from a stream and releases the stream.

interface = CoGetInterfaceAndReleaseStream(stream, iid)

Parameters

stream

A PyIStream object to which the object was previously marshaled.

iid

A string or PyIID object that defines the interface to be unmarshaled from the stream.

Result

The result is a Python COM interface object, the exact type of which is determined by the iid parameter.

Comments

When paired with CoMarshalInterThreadInterfaceInStream(), programs can easily and reliably marshal a COM interface object to another thread in the same process. See Appendix D for further details.

Get Python Programming On Win32 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.