Skip to main content

parse_shell_link

Function parse_shell_link 

Source
pub fn parse_shell_link(data: &[u8]) -> Option<ShellLink>
Expand description

Parse a Shell Link from its bytes.

Returns None when the ShellLinkHeader is not a valid [MS-SHLLINK] header (wrong HeaderSize or LinkCLSID). Never panics on malformed, truncated, or hostile input — every field read is bounds-checked, so a short/garbled body degrades to absent sub-structures rather than a crash.