Microsoft Speech SDK
SAPI 5.1
ISpThreadControl::StartThread
ISpThreadControl::StartThread initializes a thread and optionally returns a window handle.
HRESULT StartThread(
DWORD dwFlags,
HWND *phwnd
);
Parameters
- dwFlags
- Reserved. Must be zero.
- phwnd Optional address of an handle to a window. The handle of the new window will be returned to phwnd if this parameter is non-NULL. A window will not be created if this parameter is NULL.
Return values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | One or more parameters are invalid. |
E_POINTER | Invalid pointer. |
E_OUTOFMEMORY | Exceeded available memory. |