ISpNotifyTranslator::InitSpNotifyCallback (Windows CE 5.0)
This method sets up an ISpNotifyTranslator object to call the virtual method ISpNotifyCallback::NotifyCallback for notifications.
The client will be called back on the same thread that calls this method. The callback will be called as a result of window message processing, so the thread must have a message pump. For more details, see the documentation for ISpNotifyCallback.
HRESULT InitSpNotifyCallback( ISpNotifyCallback* pSpCallback, WPARAM wParam, LPARAM lParam);
Parameters
- pSpCallback
[in] Pointer to a client-defined implementation of the ISpNotifyCallback interface. - wParam
[in] Constant WPARAM value to pass to the ISpNotifyCallback::NotifyCallback method when it is called. - lParam
[in] Constant LPARAM value to pass to the ISpNotifyCallback::NotifyCallback method when it is called.
Return Values
The following table shows the possible return values.
Value | Description |
---|---|
S_OK | Function completed successfully. |
SPERR_ALREADY_INITIALIZED | Translator object is already initialized. |
E_INVALIDARG | pSpNotifyCallback is invalid or bad. |
FAILED(hr) | Appropriate error message. |
Requirements
OS Versions: Windows CE .NET 4.1 and later.
Header: Sapi.h, Sapi.idl.
Link Library: Sapilib.lib.
See Also
ISpNotifyTranslator | SAPI Interfaces
Send Feedback on this topic to the authors