Share via


ISpThreadTask::InitThread

This application-specific method initializes a thread that is allocated by a call to the ISpThreadControl::StartThread method. The caller of StartThread is blocked until ISpThreadTask::InitThread completes and returns. ISpThreadControl::StartThread then returns the code returned by InitThread. If the return code indicates failure, the thread is terminated and StartThread fails.

virtual HRESULT STDMETHODCALLTYPE InitThread(
  void* pvTaskData,
  HWND hwnd
) = 0;

Parameters

Return Values

The following table shows the possible return values.

Value Description
S_OK Function completed successfully.
Other success Success code returned to ISpThreadControl::StartThread method, and thread will continue.
Failure code Function failed. Failure code returned to StartThread, and thread is terminated.

Requirements

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

See Also

ISpThreadTask | SAPI Interfaces

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.