Microsoft Speech Platform
ISpVoice::GetStatus retrieves the current rendering and event status associated with this voice.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetStatus(</strong><a runat="server" href="jj127889(v=msdn.10).md"><strong>SPVOICESTATUS</strong></a> *<em>pStatus</em>, <strong> LPWSTR</strong> **<em>ppszLastBookmark</em> <strong>);</strong> </pre>
[out] Pointer to an SPVOICESTATUS structure which receives the status information. This pointer can be NULL if the caller does not want this information.
[out, string] Pointer to a pointer which receives a CoTaskMemAlloc allocated null-terminated string containing the text of the last bookmark reached. If there is no last bookmark, NULL will be returned. Applications calling this method must call CoTaskMemFree() to free the returned string. This pointer can be NULL if the caller does not want this information.
|S_OK||Function completed successfully.|
|E_OUTOFMEMORY||Exceeded available memory.|
Because the SPVOICESTATUS structure is closely associated with audio device status, GetStatus will not return an active status for a voice speaking to an audio output stream.