pub struct Lnk {
pub header: ShellLinkHeader,
pub string_data: StringData,
pub link_target_id_list: LinkTargetIdList,
pub link_info: LinkInfo,
pub extra_data: ExtraData,
/* private fields */
}
Expand description
Represents a windows .lnk file
Fields
header: ShellLinkHeader
The ShellLinkHeader structure contains identification information, timestamps, and flags that specify the presence of optional structures, including LinkTargetIDList (section 2.2), LinkInfo (section 2.3), and StringData (section 2.4).
string_data: StringData
StringData refers to a set of structures that convey user interface and path identification information. The presence of these optional structures is controlled by LinkFlags (section 2.1.1) in the ShellLinkHeader (section 2.1).
link_target_id_list: LinkTargetIdList
The LinkTargetIDList structure specifies the target of the link. The presence of this optional structure is specified by the HasLinkTargetIDList bit (LinkFlags section 2.1.1) in the ShellLinkHeader (section 2.1).
link_info: LinkInfo
The LinkInfo structure specifies information necessary to resolve a link target if it is not found in its original location. This includes information about the volume that the target was stored on, the mapped drive letter, and a Universal Naming Convention (UNC) form of the path if one existed when the link was created. For more details about UNC paths, see [MS-DFSNM] section 2.2.1.4.:w
extra_data: ExtraData
ExtraData refers to a set of structures that convey additional information about a link target. These optional structures can be present in an extra data section that is appended to the basic Shell Link Binary File Format.
Implementations
Creates a new Lnk
from a Read
source.
Example
use parselnk::Lnk;
use std::fs::File;
let mut file = File::open(r"c:\users\me\desktop\firefox.lnk").unwrap();
let lnk = Lnk::new(&mut file);
The relative path to the resource of the `Lnk``
The working directory of the Lnk
The description of the Lnk
The creation FileTime
as a u64
The access FileTime
as a u64
The write FileTime
as a u64
The creation FileTime
as a DateTime
The access FileTime
as a DateTime
The write FileTime
as a DateTime
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Lnk
impl UnwindSafe for Lnk
Blanket Implementations
Mutably borrows from an owned value. Read more