pub struct IShellMenu(/* private fields */);
Implementations§
Source§impl IShellMenu
impl IShellMenu
pub unsafe fn Initialize<'a>( &self, psmc: impl IntoParam<'a, IShellMenuCallback>, uid: u32, uidancestor: u32, dwflags: u32, ) -> Result<()>
pub unsafe fn GetMenuInfo( &self, ppsmc: *mut Option<IShellMenuCallback>, puid: *mut u32, puidancestor: *mut u32, pdwflags: *mut u32, ) -> Result<()>
pub unsafe fn SetShellFolder<'a>( &self, psf: impl IntoParam<'a, IShellFolder>, pidlfolder: *mut ITEMIDLIST, hkey: impl IntoParam<'a, HKEY>, dwflags: u32, ) -> Result<()>
pub unsafe fn GetShellFolder<T: Interface>( &self, pdwflags: *mut u32, ppidl: *mut *mut ITEMIDLIST, ) -> Result<T>
pub unsafe fn SetMenu<'a>( &self, hmenu: impl IntoParam<'a, HMENU>, hwnd: impl IntoParam<'a, HWND>, dwflags: u32, ) -> Result<()>
pub unsafe fn GetMenu( &self, phmenu: *mut HMENU, phwnd: *mut HWND, pdwflags: *mut u32, ) -> Result<()>
pub unsafe fn InvalidateItem( &self, psmd: *mut SMDATA, dwflags: u32, ) -> Result<()>
pub unsafe fn GetState(&self) -> Result<SMDATA>
pub unsafe fn SetMenuToolbar<'a>( &self, punk: impl IntoParam<'a, IUnknown>, dwflags: u32, ) -> Result<()>
Trait Implementations§
Source§impl Clone for IShellMenu
impl Clone for IShellMenu
Source§fn clone(&self) -> IShellMenu
fn clone(&self) -> IShellMenu
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IShellMenu
impl Debug for IShellMenu
Source§impl From<&IShellMenu> for IUnknown
impl From<&IShellMenu> for IUnknown
Source§fn from(value: &IShellMenu) -> Self
fn from(value: &IShellMenu) -> Self
Converts to this type from the input type.
Source§impl From<&ITrackShellMenu> for IShellMenu
impl From<&ITrackShellMenu> for IShellMenu
Source§fn from(value: &ITrackShellMenu) -> Self
fn from(value: &ITrackShellMenu) -> Self
Converts to this type from the input type.
Source§impl From<IShellMenu> for IUnknown
impl From<IShellMenu> for IUnknown
Source§fn from(value: IShellMenu) -> Self
fn from(value: IShellMenu) -> Self
Converts to this type from the input type.
Source§impl From<ITrackShellMenu> for IShellMenu
impl From<ITrackShellMenu> for IShellMenu
Source§fn from(value: ITrackShellMenu) -> Self
fn from(value: ITrackShellMenu) -> Self
Converts to this type from the input type.
Source§impl Interface for IShellMenu
impl Interface for IShellMenu
const IID: Guid
type Vtable = IShellMenu_abi
Source§unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
Safety Read more
Source§unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
Safety Read more
Source§impl PartialEq for IShellMenu
impl PartialEq for IShellMenu
impl Eq for IShellMenu
impl StructuralPartialEq for IShellMenu
Auto Trait Implementations§
impl Freeze for IShellMenu
impl RefUnwindSafe for IShellMenu
impl !Send for IShellMenu
impl !Sync for IShellMenu
impl Unpin for IShellMenu
impl UnwindSafe for IShellMenu
Blanket Implementations§
Source§impl<T> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
type DefaultType = Option<T>
Source§fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
Converts from
Self::DefaultType
to Result<T>
.Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
fn drop_param(_: &mut Param<'_, Self>)
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more