BasicMonikers, copyright (c) 1997-1998, Tim Ewald and Chris Sells.
CComMoniker, copyright (c) 1997-1998, Don Box, Tim Ewald and Chris Sells.
All rights reserved. NO WARRANTIES ARE EXTENDED. USE AT YOUR OWN RISK.
The New moniker and the Host moniker are small monikers samples built by Chris Sells, based heavily on implementations Tim Ewald and I built at an all-nighter ending at Denny's in Torrance. Both monikers demonstrate the use of the CComMoniker base class (built jointly by Don Box, Tim Ewald and me) as well as provide useful functionality in their own right.
To contact the authors with suggestions or comments, use csells@sellsbrothers.com, tjewald@develop.com and dbox@develop.com.
The following is the output of the included client.exe test gig, which shows most of the naming combinations supported by the New and Host monikers:
Got dm.newmk.1:Excel.Application Got dm.newmk.1:00024500-0000-0000-C000-000000000046 Got dm.newmk:00024500-0000-0000-C000-000000000046 Got dm.newmk.1:00024500-0000-0000-C000-000000000046: Got dm.newmk:00024500-0000-0000-C000-000000000046: Got dm.hostmk.1:frodo:!dm.newmk.1:00024500-0000-0000-C000-000000000046: Got dm.hostmk:frodo:!dm.newmk.1:00024500-0000-0000-C000-000000000046: Got dm.hostmk.1:frodo:dm.newmk.1:00024500-0000-0000-C000-000000000046: Got dm.hostmk:frodo:dm.newmk.1:00024500-0000-0000-C000-000000000046:
The syntax of the New Moniker is as follows:
dm.new[.1]:<progid|clsid>[:]
For example, the following are valid New Moniker display names:
dm.newmk.1:Excel.Application
dm.newmk.1:00024500-0000-0000-C000-000000000046:
It will compose to the left with an implementation of IClassFactory or IClassActivator (as implemented by the Class Moniker and the Host Moniker).
The syntax of the Host Moniker is as follows:
dm.host[.1]:<hostname>:[!]<displayname>
For example, the following are valid Host Moniker display names:
dm.hostmk.1:frodo:!dm.newmk.1:00024500-0000-0000-C000-000000000046:
dm.hostmk.1:frodo:!clsid:00024500-0000-0000-C000-000000000046: