windows::Win32::System::Ole

Trait IOleObject_Impl

pub trait IOleObject_Impl: IUnknownImpl {
Show 21 methods // Required methods fn SetClientSite(&self, pclientsite: Ref<'_, IOleClientSite>) -> Result<()>; fn GetClientSite(&self) -> Result<IOleClientSite>; fn SetHostNames( &self, szcontainerapp: &PCWSTR, szcontainerobj: &PCWSTR, ) -> Result<()>; fn Close(&self, dwsaveoption: &OLECLOSE) -> Result<()>; fn SetMoniker( &self, dwwhichmoniker: &OLEWHICHMK, pmk: Ref<'_, IMoniker>, ) -> Result<()>; fn GetMoniker( &self, dwassign: &OLEGETMONIKER, dwwhichmoniker: &OLEWHICHMK, ) -> Result<IMoniker>; fn InitFromData( &self, pdataobject: Ref<'_, IDataObject>, fcreation: BOOL, dwreserved: u32, ) -> Result<()>; fn GetClipboardData(&self, dwreserved: u32) -> Result<IDataObject>; fn DoVerb( &self, iverb: i32, lpmsg: *const MSG, pactivesite: Ref<'_, IOleClientSite>, lindex: i32, hwndparent: HWND, lprcposrect: *const RECT, ) -> Result<()>; fn EnumVerbs(&self) -> Result<IEnumOLEVERB>; fn Update(&self) -> Result<()>; fn IsUpToDate(&self) -> Result<()>; fn GetUserClassID(&self) -> Result<GUID>; fn GetUserType(&self, dwformoftype: &USERCLASSTYPE) -> Result<PWSTR>; fn SetExtent( &self, dwdrawaspect: DVASPECT, psizel: *const SIZE, ) -> Result<()>; fn GetExtent(&self, dwdrawaspect: DVASPECT) -> Result<SIZE>; fn Advise(&self, padvsink: Ref<'_, IAdviseSink>) -> Result<u32>; fn Unadvise(&self, dwconnection: u32) -> Result<()>; fn EnumAdvise(&self) -> Result<IEnumSTATDATA>; fn GetMiscStatus(&self, dwaspect: DVASPECT) -> Result<OLEMISC>; fn SetColorScheme(&self, plogpal: *const LOGPALETTE) -> Result<()>;
}

Required Methods§

fn SetClientSite(&self, pclientsite: Ref<'_, IOleClientSite>) -> Result<()>

fn GetClientSite(&self) -> Result<IOleClientSite>

fn SetHostNames( &self, szcontainerapp: &PCWSTR, szcontainerobj: &PCWSTR, ) -> Result<()>

fn Close(&self, dwsaveoption: &OLECLOSE) -> Result<()>

fn SetMoniker( &self, dwwhichmoniker: &OLEWHICHMK, pmk: Ref<'_, IMoniker>, ) -> Result<()>

fn GetMoniker( &self, dwassign: &OLEGETMONIKER, dwwhichmoniker: &OLEWHICHMK, ) -> Result<IMoniker>

fn InitFromData( &self, pdataobject: Ref<'_, IDataObject>, fcreation: BOOL, dwreserved: u32, ) -> Result<()>

fn GetClipboardData(&self, dwreserved: u32) -> Result<IDataObject>

fn DoVerb( &self, iverb: i32, lpmsg: *const MSG, pactivesite: Ref<'_, IOleClientSite>, lindex: i32, hwndparent: HWND, lprcposrect: *const RECT, ) -> Result<()>

fn EnumVerbs(&self) -> Result<IEnumOLEVERB>

fn Update(&self) -> Result<()>

fn IsUpToDate(&self) -> Result<()>

fn GetUserClassID(&self) -> Result<GUID>

fn GetUserType(&self, dwformoftype: &USERCLASSTYPE) -> Result<PWSTR>

fn SetExtent(&self, dwdrawaspect: DVASPECT, psizel: *const SIZE) -> Result<()>

fn GetExtent(&self, dwdrawaspect: DVASPECT) -> Result<SIZE>

fn Advise(&self, padvsink: Ref<'_, IAdviseSink>) -> Result<u32>

fn Unadvise(&self, dwconnection: u32) -> Result<()>

fn EnumAdvise(&self) -> Result<IEnumSTATDATA>

fn GetMiscStatus(&self, dwaspect: DVASPECT) -> Result<OLEMISC>

fn SetColorScheme(&self, plogpal: *const LOGPALETTE) -> 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§