IXACTEngine::SetGlobalVariable

Stores a new value to a global variable, referenced by its index.

HRESULT SetGlobalVariable(
  XACTVARIABLEINDEX nIndex,
  XACTVARIABLEVALUE nValue
);

Parameters

nIndex
[in] Assigned index of the global variable in which to store nValue.
nValue
[in] Value to store in the global variable.

Return Values

Returns S_OK if successful, an error code otherwise.

Requirements

Header: Declared in Xact.h.