Trait windows::Win32::Media::Speech::ISpRecoGrammar2_Impl

pub trait ISpRecoGrammar2_Impl: Sized {
    // Required methods
    fn GetRules(
        &self,
        ppcomemrules: *mut *mut SPRULE,
        punumrules: *mut u32,
    ) -> Result<()>;
    fn LoadCmdFromFile2(
        &self,
        pszfilename: &PCWSTR,
        options: SPLOADOPTIONS,
        pszsharinguri: &PCWSTR,
        pszbaseuri: &PCWSTR,
    ) -> Result<()>;
    fn LoadCmdFromMemory2(
        &self,
        pgrammar: *const SPBINARYGRAMMAR,
        options: SPLOADOPTIONS,
        pszsharinguri: &PCWSTR,
        pszbaseuri: &PCWSTR,
    ) -> Result<()>;
    fn SetRulePriority(
        &self,
        pszrulename: &PCWSTR,
        ulruleid: u32,
        nrulepriority: i32,
    ) -> Result<()>;
    fn SetRuleWeight(
        &self,
        pszrulename: &PCWSTR,
        ulruleid: u32,
        flweight: f32,
    ) -> Result<()>;
    fn SetDictationWeight(&self, flweight: f32) -> Result<()>;
    fn SetGrammarLoader(
        &self,
        ploader: Option<&ISpeechResourceLoader>,
    ) -> Result<()>;
    fn SetSMLSecurityManager(
        &self,
        psmlsecuritymanager: Option<&IInternetSecurityManager>,
    ) -> Result<()>;
}

Required Methods§

fn GetRules( &self, ppcomemrules: *mut *mut SPRULE, punumrules: *mut u32, ) -> Result<()>

fn LoadCmdFromFile2( &self, pszfilename: &PCWSTR, options: SPLOADOPTIONS, pszsharinguri: &PCWSTR, pszbaseuri: &PCWSTR, ) -> Result<()>

fn LoadCmdFromMemory2( &self, pgrammar: *const SPBINARYGRAMMAR, options: SPLOADOPTIONS, pszsharinguri: &PCWSTR, pszbaseuri: &PCWSTR, ) -> Result<()>

fn SetRulePriority( &self, pszrulename: &PCWSTR, ulruleid: u32, nrulepriority: i32, ) -> Result<()>

fn SetRuleWeight( &self, pszrulename: &PCWSTR, ulruleid: u32, flweight: f32, ) -> Result<()>

fn SetDictationWeight(&self, flweight: f32) -> Result<()>

fn SetGrammarLoader( &self, ploader: Option<&ISpeechResourceLoader>, ) -> Result<()>

fn SetSMLSecurityManager( &self, psmlsecuritymanager: Option<&IInternetSecurityManager>, ) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§