|Microsoft DirectX 9.0|
The EnumVariable method retrieves the name of a variable in a script. This method might be used by authoring applications that need to enumerate all variables in a script.
HRESULT EnumVariable( DWORD dwIndex, WCHAR *pwszName );
Zero-based index of the variable.
Address of a string buffer that receives the name of the variable. Must contain at least MAX_PATH elements.
If the method succeeds, one of the following success codes is returned:
|S_OK||The routine was enumerated.|
|S_FALSE||There is no routine with the supplied index value.|
|DMUS_S_GARBAGE_COLLECTED||See Garbage Collection.|
|DMUS_S_STRING_TRUNCATED||The name is longer than MAX_PATH.|
If the method fails, return values can include the following:
Header: Declared in dmusici.h.