ISpThreadControl::StartThread

This method initializes a thread and optionally retrieves a window handle.

HRESULT StartThread(
  DWORD dwFlags,
  HWND* phwnd
);

Parameters

  • dwFlags
    [in] Reserved. Must be 0.
  • phwnd
    [out] Optional pointer to a window handle. If this parameter is NULL, no window is created. If it is non-null, the handle of a new window is retrieved.

Return Values

The following table shows the possible return values.

Value Description
S_OK Function completed successfully.
E_INVALIDARG One or more arguments are invalid.
E_POINTER Invalid pointer.
E_OUTOFMEMORY Exceeded available memory.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Sapiddk.h, Sapiddk.idl.
Link Library: Sapilib.lib.

See Also

ISpThreadControl | SAPI Interfaces

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.