Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Microsoft Speech Platform

ISpRecoGrammar2::SetSMLSecurityManager

ISpRecoGrammar2::SetSMLSecurityManager lets a Speech Platform application manage its own security policy.

By default, the Speech Platform uses URLMON to determine the security rights of semantic interpretation scripts in XML-format grammars that conform to the Speech Recognition Grammar Specification (SRGS) Version 1.0. However, an application may desire to override this with its own security policy, by implementing their own IInternetSecurityManager interface. IInternetSecurityManager is defined by URLMON.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT SetSMLSecurityManager(</strong> <strong> IInternetSecurityManager</strong> *<em>pSMLSecurityManager</em> <strong>);</strong> </pre>

Parameters

  • pSMLSecurityManager
    The pointer to the application's implementation of the IInternetSecurityManager interface.

Return Values

Value Description
S_OK Function completed successfully.
E_POINTER pSMLSecurityManager is invalid.
E_NOTIMPL The interface is not implemented.