ISpRecoGrammar2::SetSMLSecurityManager (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3


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

By default, SAPI uses Windows' URLMON to determine the security rights of semantic interpretation scripts in SRGS grammars. However, an application may desire to override this with its own security policy, by implementing their own IInternetSecurityManager interface. IInternetSecurityManager is defined by URLMON.

HRESULT SetSMLSecurityManager(
   IInternetSecurityManager    *pSMLSecurityManager


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

Return values

S_OKFunction completed successfully.
E_POINTERpSMLSecurityManager is invalid.
SPERR_NOT_SUPPORTED_FOR_SHARED_RECOGNIZERThe method called is not supported for the shared recognizer.
E_NOTIMPLThe interface is not implemented.