The IScriptingContext::get_Application method retrieves a pointer to the IApplicationObject interface of the Application object.
HRESULT get_Application(
IApplicationObject ** ppApplication //pointer to an
// IApplicationObject interface
// pointer
);
You can use IApplicationObject to gain access to variables and objects that have been given application scope. IApplicationObject also exposes methods to lock and unlock an application to prevent concurrent access to application objects and variables.