windows::Win32::Media::Speech

Trait ISpObjectToken_Impl

pub trait ISpObjectToken_Impl: ISpDataKey_Impl {
    // Required methods
    fn SetId(
        &self,
        pszcategoryid: &PCWSTR,
        psztokenid: &PCWSTR,
        fcreateifnotexist: BOOL,
    ) -> Result<()>;
    fn GetId(&self) -> Result<PWSTR>;
    fn GetCategory(&self) -> Result<ISpObjectTokenCategory>;
    fn CreateInstance(
        &self,
        punkouter: Ref<'_, IUnknown>,
        dwclscontext: u32,
        riid: *const GUID,
        ppvobject: *mut *mut c_void,
    ) -> Result<()>;
    fn GetStorageFileName(
        &self,
        clsidcaller: *const GUID,
        pszvaluename: &PCWSTR,
        pszfilenamespecifier: &PCWSTR,
        nfolder: u32,
    ) -> Result<PWSTR>;
    fn RemoveStorageFileName(
        &self,
        clsidcaller: *const GUID,
        pszkeyname: &PCWSTR,
        fdeletefile: BOOL,
    ) -> Result<()>;
    fn Remove(&self, pclsidcaller: *const GUID) -> Result<()>;
    fn IsUISupported(
        &self,
        psztypeofui: &PCWSTR,
        pvextradata: *mut c_void,
        cbextradata: u32,
        punkobject: Ref<'_, IUnknown>,
        pfsupported: *mut BOOL,
    ) -> Result<()>;
    fn DisplayUI(
        &self,
        hwndparent: HWND,
        psztitle: &PCWSTR,
        psztypeofui: &PCWSTR,
        pvextradata: *mut c_void,
        cbextradata: u32,
        punkobject: Ref<'_, IUnknown>,
    ) -> Result<()>;
    fn MatchesAttributes(
        &self,
        pszattributes: &PCWSTR,
        pfmatches: *mut BOOL,
    ) -> Result<()>;
}

Required Methods§

fn SetId( &self, pszcategoryid: &PCWSTR, psztokenid: &PCWSTR, fcreateifnotexist: BOOL, ) -> Result<()>

fn GetId(&self) -> Result<PWSTR>

fn GetCategory(&self) -> Result<ISpObjectTokenCategory>

fn CreateInstance( &self, punkouter: Ref<'_, IUnknown>, dwclscontext: u32, riid: *const GUID, ppvobject: *mut *mut c_void, ) -> Result<()>

fn GetStorageFileName( &self, clsidcaller: *const GUID, pszvaluename: &PCWSTR, pszfilenamespecifier: &PCWSTR, nfolder: u32, ) -> Result<PWSTR>

fn RemoveStorageFileName( &self, clsidcaller: *const GUID, pszkeyname: &PCWSTR, fdeletefile: BOOL, ) -> Result<()>

fn Remove(&self, pclsidcaller: *const GUID) -> Result<()>

fn IsUISupported( &self, psztypeofui: &PCWSTR, pvextradata: *mut c_void, cbextradata: u32, punkobject: Ref<'_, IUnknown>, pfsupported: *mut BOOL, ) -> Result<()>

fn DisplayUI( &self, hwndparent: HWND, psztitle: &PCWSTR, psztypeofui: &PCWSTR, pvextradata: *mut c_void, cbextradata: u32, punkobject: Ref<'_, IUnknown>, ) -> Result<()>

fn MatchesAttributes( &self, pszattributes: &PCWSTR, pfmatches: *mut BOOL, ) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§