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§

Get the link flags

Set the link flags

Set some link flags

Get the file attributes

Set the file attributes

Get the file creation time

Set the file creation time

Get the file access time

Set the file access time

Get the file write time

Set the file write time

The file size, or at least the least significant 32-bits of the size

Set the file size, or if bigger then 32-bits, set the least significant 32-bits

Get the icon index

Set the icon index

Get the show command

Set the shortcut show command

Get the hotkey flags

Get a mutable pointer to the hotkey flags

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Create a new, blank, ShellLinkHeader

Write the data in this header to a [u8] for writing to the output file.

Read data into this struct from a [u8]. Returns an error when the magic number is not valid.

The type returned in the event of a conversion error.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.