Skip to main content

parse_automatic_destinations_checked

Function parse_automatic_destinations_checked 

Source
pub fn parse_automatic_destinations_checked(
    data: &[u8],
    filename: Option<&str>,
) -> Result<JumpList, JumplistError>
Expand description

Parse a *.automaticDestinations-ms Jump List, surfacing the structural reason for any failure.

  • Err(JumplistError::NotCompoundFile { found_magic }) — the bytes are not a CFB compound file; found_magic carries the first 8 bytes that were there.
  • Err(JumplistError::MissingDestListStream) — a valid CFB without a DestList stream (so not an automatic-destinations Jump List).
  • Ok(JumpList) — a parsed Jump List (its entries may be empty if no embedded shell link decoded, but the DestList was present).

app_id is taken from filename when given. Never panics on hostile input.