Share via


IXACTEngine::SetGlobalVariable

IXACTEngine::SetGlobalVariable

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

[Content-driven]

  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. Otherwise, an error code.

Requirements

Header: Declared in Xact.h.

Library: Use Xact.lib.

See Also

IXACTEngine