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