Struct lnk::ShellLinkHeader
source · pub struct ShellLinkHeader { /* private fields */ }
Expand description
A ShellLinkHeader structure (section 2.1), which contains identification information, timestamps, and flags that specify the presence of optional structures.
Implementations§
source§impl ShellLinkHeader
impl ShellLinkHeader
sourcepub fn link_flags(&self) -> &LinkFlags
pub fn link_flags(&self) -> &LinkFlags
Get the link flags
sourcepub fn set_link_flags(&mut self, link_flags: LinkFlags)
pub fn set_link_flags(&mut self, link_flags: LinkFlags)
Set the link flags
sourcepub fn update_link_flags(&mut self, link_flags: LinkFlags, value: bool)
pub fn update_link_flags(&mut self, link_flags: LinkFlags, value: bool)
Set some link flags
sourcepub fn file_attributes(&self) -> &FileAttributeFlags
pub fn file_attributes(&self) -> &FileAttributeFlags
Get the file attributes
sourcepub fn set_file_attributes(&mut self, file_attributes: FileAttributeFlags)
pub fn set_file_attributes(&mut self, file_attributes: FileAttributeFlags)
Set the file attributes
sourcepub fn creation_time(&self) -> FileTime
pub fn creation_time(&self) -> FileTime
Get the file creation time
sourcepub fn set_creation_time(&mut self, creation_time: FileTime)
pub fn set_creation_time(&mut self, creation_time: FileTime)
Set the file creation time
sourcepub fn access_time(&self) -> FileTime
pub fn access_time(&self) -> FileTime
Get the file access time
sourcepub fn set_access_time(&mut self, access_time: FileTime)
pub fn set_access_time(&mut self, access_time: FileTime)
Set the file access time
sourcepub fn write_time(&self) -> FileTime
pub fn write_time(&self) -> FileTime
Get the file write time
sourcepub fn set_write_time(&mut self, write_time: FileTime)
pub fn set_write_time(&mut self, write_time: FileTime)
Set the file write time
sourcepub fn file_size(&self) -> u32
pub fn file_size(&self) -> u32
The file size, or at least the least significant 32-bits of the size
sourcepub fn set_file_size(&mut self, file_size: u32)
pub fn set_file_size(&mut self, file_size: u32)
Set the file size, or if bigger then 32-bits, set the least significant 32-bits
sourcepub fn icon_index(&self) -> i32
pub fn icon_index(&self) -> i32
Get the icon index
sourcepub fn set_icon_index(&mut self, icon_index: i32)
pub fn set_icon_index(&mut self, icon_index: i32)
Set the icon index
sourcepub fn show_command(&self) -> &ShowCommand
pub fn show_command(&self) -> &ShowCommand
Get the show command
sourcepub fn set_show_command(&mut self, show_command: ShowCommand)
pub fn set_show_command(&mut self, show_command: ShowCommand)
Set the shortcut show command
sourcepub fn hotkey(&self) -> &HotkeyFlags
pub fn hotkey(&self) -> &HotkeyFlags
Get the hotkey flags
sourcepub fn hotkey_mut(&mut self) -> &mut HotkeyFlags
pub fn hotkey_mut(&mut self) -> &mut HotkeyFlags
Get a mutable pointer to the hotkey flags
Trait Implementations§
source§impl Clone for ShellLinkHeader
impl Clone for ShellLinkHeader
source§fn clone(&self) -> ShellLinkHeader
fn clone(&self) -> ShellLinkHeader
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 more