IAPCSpeech::QuerySpeechInterface

This method queries for the voice command and voice text interfaces.

Syntax

HRESULT IAPCSpeech::QueryInterface( REFIID riid, LPVOID FAR* ppvObj );

Parameters

riid
[in] Specifies the interface identifier (IID) of the interface being requested.
ppvObj
[out] Pointer to an interface pointer to the object on return. If the interface specified in riid is not supported by the object, ppvObject is set to NULL.

Return Values

An appropriate HRESULT value is returned.

Remarks

The application can call QuerySpeechInterface to obtain the IID_IVoiceCmd, IID_IVoiceText, and other related voice command and voice text interface pointers.

The speech object registers a notification sink; therefore, it is not necessary or possible to register your own using a voice command and voice text interface pointer.