Microsoft DirectX 8.0 (C++) |
Assigns an object interface pointer to a variable declared in the script.
HRESULT SetVariableObject( WCHAR *pwszVariableName, IUnknown *punkValue, DMUS_SCRIPT_ERRORINFO *pErrInfo );
If the method succeeds, one of the following success codes is returned:
S_OK | The value was set. |
S_FALSE | The variable does not exist in the script. |
DMUS_S_GARBAGE_COLLECTED | See Garbage Collection. |
If the method fails, return values can include the following:
DMUS_E_NOT_INIT |
DMUS_E_SCRIPT_CONTENT_READONLY |
DMUS_E_SCRIPT_VARIABLE_NOT_FOUND |
E_POINTER |
Header: Declared in dmusici.h.