Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method handles an engine extension call to the SR engine. It behaves the same way as ISpSREngine::PrivateCall, except that it allows the engine to retrieve a data block of variable size for the engine extension object.
HRESULT PrivateCallEx( void* pvEngineContext, const void* pInCallFrame, ULONG ulInCallFrameSize, void** ppvCoMemResponse, ULONG* pulResponseSize);
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. - pInCallFrame
[in] Pointer to engine-specific input data. - ulInCallFrameSize
[in] Size, in bytes, of the engine-specific data specified by pInCallFrame. - ppvCoMemResponse
[out] Address of a pointer to the response block information from the SR engine. This must be allocated with CoTaskMemAlloc. - pulResponseSize
[out] Pointer to the size, in bytes, of the data specified by ppvCoMemResponse.
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
Send Feedback on this topic to the authors