Exploring Moniker Types

The component that provides a moniker makes the moniker accessible to other objects. It is important to understand the differences between the various system-supplied moniker classes to know which are appropriate for a given object. COM also provides functions for creating monikers using the COM-supplied moniker classes. In this section I'll cover file monikers, the Running Object Table, item monikers, class monikers, and pointer monikers.

File Monikers

The simplest moniker types are file monikers. They can be used to identify any object that's stored in a file of its own. File monikers act as wrappers for the pathname the native file system assigns to the file. Calling IMoniker::BindToObject() for this moniker would cause ...

Get COM+ Unleashed now with O’Reilly online learning.

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