Freigeben über


ISpSREngine::PrivateCall (Windows CE 5.0)

Send Feedback

This method handles an engine extension call to the SR engine. SAPI marshals the data supplied and calls this method when the engine extension COM object calls _ISpPrivateEngineCall::CallEngine.

To support this method, the engine must implement an engine extension COM object that supports any interfaces the engine requires. Support of this extension object allows an application to call IUnknown::QueryInterface on the speech recognition context object (ISpRecoContext) for these interfaces.

The appropriate engine extension object can then query for the _ISpPrivateEngineCall interface from the recognition context. If it needs to communicate with the main engine, the extension object calls _ISpPrivateEngineCall::CallEngine, which passes the provided data to ISpSREngine::PrivateCall.

HRESULT PrivateCall(  void* pvEngineContext,   PVOID* pCallFrame,  ULONG ulCallFrameSize);

Parameters

  • pvEngineContext
    [in] Pointer to the speech recognition context for the engine. The pointer is retrieved by a prior call to the ISpSREngine::OnCreateRecoContext method.
  • pCallFrame
    [in, out] Pointer to engine-specific data. On input, this value indicates data for the engine to use. On output, it indicates data from the engine. The retrieved data must be the same size as the input data.
  • ulCallFrameSize
    [in] Size, in bytes, of the engine-specific data indicated by pCallFrame.

Return Values

The following table shows the possible return values.

Value Description
S_OK Function completed successfully.
FAILED(hr) Appropriate error message.

Requirements

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

See Also

ISpSREngine | SAPI Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.