The IApplicationObject::get_Value method retrieves the value of a variable stored in the Application object.
HRESULT get_Value(
BSTR bstrValue, // contains the name of the variable
VARIANT * pvar // pointer to a variant that receives the variable
// value
);
You can use this method to access variables that have been given application scope.