lnk 0.6.4

A Rust library to parse and write Windows shortcut files (.lnk)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use binrw::BinRead;
use getset::Getters;
use serde::Serialize;

use crate::generic_types::idlist::IdList;

#[derive(Clone, Debug, BinRead, Getters)]
#[cfg_attr(feature = "serde", derive(Serialize))]
#[br(import(block_size: u32), pre_assert(block_size != 10))]
#[getset(get = "pub")]
#[allow(unused)]
/// Contains a list of item identifiers.
/// <https://learn.microsoft.com/en-us/windows/win32/api/shtypes/ns-shtypes-itemidlist>
pub struct ShellItemIdentifiers {
    /// The items in this list of identifiers
    #[br(args((block_size - 8).try_into().unwrap()))]
    items: IdList,
}