ISRSpeaker::Enum

HRESULT Enum(PTSTR *ppszBuffer, DWORD *pdwBufSize);

Enumerates the list of speakers known to the speech-recognition engine.

· Returns NOERROR if successful, or one of these error values:

E_INVALIDARG
E_OUTOFMEMORY

ppszBuffer

[out] Address of a variable that receives a pointer to a list of speaker names. Each speaker name is a null-terminated string. The list is also terminated with a NULL.

pdwBufSize

[out] Address of a variable that receives the number of bytes of data copied into pszBuffer.

The application must free the memory allocated by the member function, using the CoTaskMemAlloc and CoTaskMemFree functions.