Share via


XACTSetGlobalVariable

XACTSetGlobalVariable

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

Windows:  This function is not supported on the Windows platform. Use IXACTEngine::SetGlobalVariable

  HRESULT 
  XACTSetGlobalVariable(
  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.

Remarks

Note    This function has been deprecated. Titles should use IXACTEngine::SetGlobalVariable.

Requirements

Header: Declared in Xact.h.

Library: Use Xact.lib.