Other Application Execution Context Considerations

There are also certain capabilities and restrictions that apply to code executing in the application execution context.

virtual bool
AcApDocManager::isApplicationContext() const = 0;
acDocManager()->curDocument()->cDoc()->GetIDispatch(
    BOOL bAddRef);
virtual Acad::ErrorStatus 
setCurDocument(
    AcApDocument* pDoc,
    AcAp::DocLockMode = AcAp::kNone,
    bool activate = false) = 0;