Share via


GetLatticePtr Function

GetLatticePtr Function

Returns a pointer to the lattice for the current results.

The recognition results are in a serialized format.

Syntax

[C++]

HRESULT WINAPI GetLatticePtr(
  HRECOCONTEXT hrc,
  RECO_LATTICE **ppLattice
);

Parameters

hrc

[in] Handle to the recognizer context.

ppLattice

[out] Serialized recognition results.

Return Value

HRESULT value Description
S_OK Success.
E_OUTOFMEMORY Unable to allocate memory to complete the operation.
E_NOTIMPL The recognizer does not support this function.
TPC_E_NOT_RELEVANT The recognizer context does not contain results.