![]() | InDesign SDK 20.5 |
#include <IControllingUnknown.h>

Public Types | |
| enum | { kDefaultIID = IID_ICONTROLLINGUNKNOWN } |
Public Member Functions | |
| virtual ClassID | GetClass () const =0 |
| virtual ImplementationID | GetImplementationID (IPMUnknown *p) const =0 |
| virtual PMIID | GetInterfaceID (IPMUnknown *p) const =0 |
| virtual uint32 | GetRefCount () const =0 |
| virtual IPMUnknown * | GetInterfacePtr (PMIID interfaceID) const =0 |
| virtual IPMUnknown * | GetInterfacePtr (ImplementationID implID) const =0 |
| virtual const IPMPersist * | GetPersist () const =0 |
| virtual void | SwitchExecutionContext ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This interface is automatically added to every boss class and contains general information about a boss object such as its reference count. The implementation of this interface is a C++ object that "controls" the interface or "bosses" them, hence the term boss.
| pure virtual |
Return the ClassID associated with the object. Generally this can be more conveniently called via ::GetClass(theBoss) in PersistUtils.h
Implemented in IClassInfo.
| pure virtual |
Given a pointer to an interface in the boss, return the implementationID of that interface.
| p | pointer to an interface of the boss |
| pure virtual |
Given a pointer to an interface in the boss, return the PMIID of that interface.
| p | pointer to an interface of the boss |
| pure virtual |
Return a pointer to an interface, if the interface has already been instantiated.
Otherwise, return nil. You shouldn't need to call this. The reference count is not incremented.
| interfaceID | specifies interface to get |
| pure virtual |
Convert implementationID to a pointer to that interface.
You shouldn't need to call this.
| implID | specifies which interface |
| pure virtual |
Convert implementationID to a pointer to that interface.
You shouldn't need to call this.
| implID | specifies which interface |
| pure virtual |
Return the current refcount.