Understanding COM Interop

Component Object Model (COM) is a native object-oriented programming model that has been supported on Windows CE since the earliest versions. COM components are exposed by interfaces and are reference counted so that when the last reference is deleted, the object can safely release any resources it uses. COM components are referenced by a pointer. In memory, this points to a VTable that is a list of function pointers to each method in the interface. All COM interfaces are derived from IUknown, which includes methods for increasing (AddRef) and decreasing (Release) the reference count and querying for another interface type (QueryInterface). A component can support multiple interfaces, and each interface is identified ...

Get Microsoft® Mobile Development Handbook now with O’Reilly online learning.

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