Share via


IXACTEngine::GetGlobalVariable

IXACTEngine::GetGlobalVariable

Retrieves the value of a global variable by its index.

[Content-driven]

  HRESULT 
  GetGlobalVariable(
  XACTVARIABLEINDEX nIndex,
  XACTVARIABLEVALUE *nValue
);

Parameters

  • nIndex
    [in] Assigned index of the global variable to retrieve.
  • nValue
    [out] Pointer to the location of the value that is currently held by 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