IEnumSRShare::Detach

HRESULT Detach(QWORD qwInstanceID);

Detaches from an engine/audio-source pair. An application must call this member function to release a speech-recognition engine; it cannot release the engine interface itself. It will decrement the ref count on that it holds on this engine in the sharing objects list of engines, and if no other application is using this engine, it will release any ISRCentral interfaces it is holding.

· Returns NOERROR if successful, or the VCMDERR_NOENGINE error value.

qwInstanceID

[in] Instance identifier of the engine/audio-source pair to be detached from.