IXACTEngine::GetGlobalVariable

Retrieves the value of a global variable by its index.

HRESULT GetGlobalVariable(
  XACTVARIABLEINDEX nIndex,
  XACTVARIABLEVALUE *pnValue
);

Parameters

nIndex
[in] Assigned index of the global variable to retrieve.
pnValue
[out] Pointer to where to store the value currently held by the global variable.

Return Values

Returns S_OK if successful, an error code otherwise.

Requirements

Header: Declared in Xact.h.