Share via


ISpSREngine::PrivateCallEx

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

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.

Syntax

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 Value

The following table shows the possible return values.

Value Description

S_OK

Function completed successfully.

FAILED(hr)

Appropriate error message.

Requirements

Header sapiddk.h, sapiddk.idl
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

ISpSREngine
SAPI Interfaces