다음을 통해 공유


ISpSREngine::LoadProprietaryGrammar (Windows CE 5.0)

Send Feedback

This method loads a grammar in an engine-specific format. SAPI calls this method to use an application-requested grammar that is not in the standard SAPI CFG format.

The application can supply a format identifier (in the form of a GUID), string data, or binary data, or some combination of these, to describe the grammar. SAPI does nothing with this data apart from correctly marshaling it to the SR engine by calling this method.

HRESULT LoadProprietaryGrammar(  void* pvEngineGrammar,  REFGUID rguidParam,  const WCHAR* pszStringParam,  const void* pvDataParam,  ULONG ulDataSize,  SPLOADOPTIONS Options);

Parameters

  • pvEngineGrammar
    [in] Pointer to the grammar supported by the SR engine. The pointer is retrieved by a prior call to the ISpSREngine::OnCreateGrammar method.
  • rguidParam
    [in] Unique identifier for the proprietary grammar.
  • pszStringParam
    [in] Pointer to a null-terminated string specifying proprietary grammar data.
  • pvDataParam
    [in] Pointer to proprietary grammar image data.
  • ulDataSize
    [in] Size, in bytes, of grammar image data specified by pvDataParam.
  • Options
    [in] A grammar loading option. Possible values are specified for the SPLOADOPTIONS enumeration.

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.