pub struct IShellLink(/* private fields */);
Available on crate feature
shell
only.Expand description
IShellLink
COM interface.
Automatically calls
Release
when the object goes out of scope.
§Examples
use winsafe::{self as w, prelude::*, co};
let obj = w::CoCreateInstance::<w::IShellLink>(
&co::CLSID::ShellLink,
None::<&w::IUnknown>,
co::CLSCTX::INPROC_SERVER,
)?;
Trait Implementations§
Source§impl Clone for IShellLink
impl Clone for IShellLink
Source§impl Drop for IShellLink
impl Drop for IShellLink
Source§impl ole_IUnknown for IShellLink
impl ole_IUnknown for IShellLink
Source§unsafe fn from_ptr(p: *mut c_void) -> Self
unsafe fn from_ptr(p: *mut c_void) -> Self
Available on crate feature
ole
only.Creates an object from a COM virtual table pointer. Read more
Source§unsafe fn as_mut(&mut self) -> &mut *mut c_void
unsafe fn as_mut(&mut self) -> &mut *mut c_void
Available on crate feature
ole
only.Returns a mutable reference do the underlying COM virtual table pointer. Read more
Source§fn ptr(&self) -> *mut c_void
fn ptr(&self) -> *mut c_void
Available on crate feature
ole
only.Returns the pointer to the underlying COM virtual table. Read more
Source§unsafe fn null() -> Self
unsafe fn null() -> Self
Available on crate feature
ole
only.Creates an object from a null COM virtual table pointer. Read more
Source§fn QueryInterface<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
fn QueryInterface<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
Available on crate feature
ole
only.IUnknown::QueryInterface
method.Source§impl shell_IShellLink for IShellLink
impl shell_IShellLink for IShellLink
Source§fn GetArguments(&self) -> HrResult<String>
fn GetArguments(&self) -> HrResult<String>
IShellLink::GetArguments
method.Source§fn GetDescription(&self) -> HrResult<String>
fn GetDescription(&self) -> HrResult<String>
IShellLink::GetDescription
method.Source§fn GetIconLocation(&self) -> HrResult<(String, i32)>
fn GetIconLocation(&self) -> HrResult<(String, i32)>
IShellLink::GetIconLocation
method. Read moreSource§fn GetPath(
&self,
fd: Option<&mut WIN32_FIND_DATA>,
flags: SLGP,
) -> HrResult<String>
fn GetPath( &self, fd: Option<&mut WIN32_FIND_DATA>, flags: SLGP, ) -> HrResult<String>
IShellLink::GetPath
method.Source§fn GetShowCmd(&self) -> HrResult<SW>
fn GetShowCmd(&self) -> HrResult<SW>
IShellLink::GetShowCmd
method.Source§fn GetWorkingDirectory(&self) -> HrResult<String>
fn GetWorkingDirectory(&self) -> HrResult<String>
IShellLink::GetWorkingDirectory
method.Source§fn SetArguments(&self, args: &str) -> HrResult<()>
fn SetArguments(&self, args: &str) -> HrResult<()>
IShellLink::SetArguments
method.Source§fn SetDescription(&self, args: &str) -> HrResult<()>
fn SetDescription(&self, args: &str) -> HrResult<()>
IShellLink::SetDescription
method.Source§fn SetIconLocation(&self, path: &str, index: i32) -> HrResult<()>
fn SetIconLocation(&self, path: &str, index: i32) -> HrResult<()>
IShellLink::SetIconLocation
method.Source§fn SetRelativePath(&self, file: &str) -> HrResult<()>
fn SetRelativePath(&self, file: &str) -> HrResult<()>
IShellLink::SetRelativePath
method.Source§fn SetShowCmd(&self, show_cmd: SW) -> HrResult<()>
fn SetShowCmd(&self, show_cmd: SW) -> HrResult<()>
IShellLink::SetShowCmd
method.Source§fn SetWorkingDirectory(&self, dir: &str) -> HrResult<()>
fn SetWorkingDirectory(&self, dir: &str) -> HrResult<()>
IShellLink::SetWorkingDirectory
method.impl Send for IShellLink
Auto Trait Implementations§
impl Freeze for IShellLink
impl RefUnwindSafe for IShellLink
impl !Sync for IShellLink
impl Unpin for IShellLink
impl UnwindSafe for IShellLink
Blanket Implementations§
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