Trait winsafe::prelude::shell_IShellLink
source · pub trait shell_IShellLink: ole_IUnknown {
Show 14 methods
// Provided methods
fn GetArguments(&self) -> HrResult<String> { ... }
fn GetDescription(&self) -> HrResult<String> { ... }
fn GetIconLocation(&self) -> HrResult<(String, i32)> { ... }
fn GetPath(
&self,
fd: Option<&mut WIN32_FIND_DATA>,
flags: SLGP
) -> HrResult<String> { ... }
fn GetShowCmd(&self) -> HrResult<SW> { ... }
fn GetWorkingDirectory(&self) -> HrResult<String> { ... }
fn Resolve(&self, hwnd: &HWND, flags: SLR) -> HrResult<()> { ... }
fn SetArguments(&self, args: &str) -> HrResult<()> { ... }
fn SetDescription(&self, args: &str) -> HrResult<()> { ... }
fn SetIconLocation(&self, path: &str, index: i32) -> HrResult<()> { ... }
fn SetPath(&self, file: &str) -> HrResult<()> { ... }
fn SetRelativePath(&self, file: &str) -> HrResult<()> { ... }
fn SetShowCmd(&self, show_cmd: SW) -> HrResult<()> { ... }
fn SetWorkingDirectory(&self, dir: &str) -> HrResult<()> { ... }
}
Available on crate features
kernel
and shell
only.Expand description
This trait is enabled with the shell
feature, and provides methods for
IShellLink
.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
sourcefn GetArguments(&self) -> HrResult<String>
fn GetArguments(&self) -> HrResult<String>
IShellLink::GetArguments
method.
sourcefn GetDescription(&self) -> HrResult<String>
fn GetDescription(&self) -> HrResult<String>
IShellLink::GetDescription
method.
sourcefn GetIconLocation(&self) -> HrResult<(String, i32)>
fn GetIconLocation(&self) -> HrResult<(String, i32)>
IShellLink::GetIconLocation
method.
Returns the path of the icon and its index within the file.
sourcefn 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.
sourcefn GetShowCmd(&self) -> HrResult<SW>
fn GetShowCmd(&self) -> HrResult<SW>
IShellLink::GetShowCmd
method.
sourcefn GetWorkingDirectory(&self) -> HrResult<String>
fn GetWorkingDirectory(&self) -> HrResult<String>
IShellLink::GetWorkingDirectory
method.
sourcefn SetArguments(&self, args: &str) -> HrResult<()>
fn SetArguments(&self, args: &str) -> HrResult<()>
IShellLink::SetArguments
method.
sourcefn SetDescription(&self, args: &str) -> HrResult<()>
fn SetDescription(&self, args: &str) -> HrResult<()>
IShellLink::SetDescription
method.
sourcefn SetIconLocation(&self, path: &str, index: i32) -> HrResult<()>
fn SetIconLocation(&self, path: &str, index: i32) -> HrResult<()>
IShellLink::SetIconLocation
method.
sourcefn SetRelativePath(&self, file: &str) -> HrResult<()>
fn SetRelativePath(&self, file: &str) -> HrResult<()>
IShellLink::SetRelativePath
method.
sourcefn SetShowCmd(&self, show_cmd: SW) -> HrResult<()>
fn SetShowCmd(&self, show_cmd: SW) -> HrResult<()>
IShellLink::SetShowCmd
method.
sourcefn SetWorkingDirectory(&self, dir: &str) -> HrResult<()>
fn SetWorkingDirectory(&self, dir: &str) -> HrResult<()>
IShellLink::SetWorkingDirectory
method.
Object Safety§
This trait is not object safe.