Freigeben über


ISpThreadTask::InitThread (Windows CE 5.0)

Send Feedback

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

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.