Microsoft DirectX 8.1 (C++) |
The CallRoutine method executes a routine in the script.
Syntax
HRESULT CallRoutine(
WCHAR *pwszRoutineName,
DMUS_SCRIPT_ERRORINFO *pErrInfo
);
Parameters
pwszRoutineName
Name of the routine.
pErrInfo
Address of a DMUS_SCRIPT_ERRORINFO structure that receives information if an error occurs. Set this member to NULL if you do not want error information.
Return Values
If the method succeeds, the return value is S_OK or DMUS_S_GARBAGE_COLLECTED. See Garbage Collection.
If the method fails, return values can include those in the following table.
Remarks
Control does not return to the application until the routine finishes running.
Requirements
Header: Declared in dmusici.h.
See Also