19.1. How COM Works

Everything about COM revolves around object interfaces. The component platform is intrinsically object oriented. It defines interfaces as contracts, sets of methods and properties, that objects must implement. Using contracts makes it possible for other objects to use the interfaces by knowing what operations are supported. A COM interface is a set of methods and properties that an object exposes to the outside world. It is identified by a globally unique identifier (GUID). Classes that implement those interfaces are also uniquely identified by a GUID; that GUID is also called a class ID, or a CLSID. Those classes are registered in the Windows registry, and the class IDs are the ones that the system uses when creating an ...

Get Pro Windows PowerShell 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.