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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.