AntiMoniker Class

An anti-moniker is a moniker that when composed onto the end of a generic composite moniker removes the last piece. Composing an anti-moniker onto the end of another kind of moniker should, generally, annihilate the whole other moniker.

Being composed onto the end of another moniker is pretty much the only interesting thing one can do to an anti-moniker: they cannot be bound, their display name is useless, and so forth. They exist to support implementations of IMoniker::Inverse; see that function for usage scenarios.

Moniker implementations that use anti-monikers as inverses should check for anti-monikers on the right in their implementations of IMoniker::ComposeWith and collapse down to nothing if so.