Share via


ISpSREngine::OnCreateRecoContext

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

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This method informs the SR engine of the creation of a speech recognition context. Each application connected with the SR engine can have one or more recognition contexts.

This method associates a pointer with the new recognition context. SAPI passes this pointer when calling other methods for the context.

Syntax

HRESULT OnCreateRecoContext(
  SPRECOCONTEXTHANDLE hSAPIRecoContext, 
  void** ppvEngineContext
);

Parameters

  • hSAPIRecoContext
    [in] Unique handle to the recognition context.
  • ppvEngineContext
    [out] Address of a pointer to any engine-specific information that the engine has associated with this context.

Return Value

The following table shows the possible return values.

Value Description

NOERROR

No error is possible with this function.

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