Struct winsafe::IShellLink
source · pub struct IShellLink(/* private fields */);
Available on crate feature
shell
only.Expand description
IShellLink
COM interface over IShellLinkVT
.
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,
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 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