Share via


ISpRecoContext::GetContextState

This method gets the state of the speech recognition context.

HRESULT GetContextState(
  SPCONTEXTSTATE* peContextState
);

Parameters

  • peContextState
    [out] Pointer to a value specifying the state of the speech recognition context. Possible values are defined for the SPCONTEXTSTATE enumeration.

Return Values

The following table shows the possible return values.

Value Description
S_OK Function completed successfully.
E_POINTER One of the pointers is invalid or bad.
FAILED(hr) Appropriate error message.

Remarks

The default recognition context state for an ISpRecoContext object is SPCS_ENABLED.

Applications can use ISpRecoContext::SetContextState to set the context state.

Requirements

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

See Also

ISpRecoContext | SAPI Interfaces

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.