Retrieves the value of a global variable by its index.
HRESULT GetGlobalVariable( XACTVARIABLEINDEX nIndex, XACTVARIABLEVALUE *pnValue );
Returns S_OK if successful, an error code otherwise.
Header: Declared in Xact.h.