The IApplicationObject::get_Value method retrieves the value of a variable stored in the Application object.
HRESULT get_Value(
BSTR bstrValue, //binary string that 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.