[][src]Struct lnk::LinkFlags

pub struct LinkFlags { /* fields omitted */ }

The LinkFlags structure defines bits that specify which shell linkstructures are present in the file format after the ShellLinkHeaderstructure (section 2.1).

Implementations

impl LinkFlags[src]

The shell link is saved with an item ID list (IDList). If this bit is set, a LinkTargetIDList structure (section 2.2) MUST follow the ShellLinkHeader. If this bit is not set, this structure MUST NOT be present.

The shell link is saved with link information. If this bit is set, a LinkInfo structure (section 2.3) MUST be present. If this bit is not set, this structure MUST NOT be present.

pub const HAS_NAME: LinkFlags[src]

The shell link is saved with a name string. If this bit is set, a NAME_STRING StringData structure (section 2.4) MUST be present. If this bit is not set, this structure MUST NOT be present.

pub const HAS_RELATIVE_PATH: LinkFlags[src]

The shell link is saved with a relative path string. If this bit is set, a RELATIVE_PATH StringData structure (section 2.4) MUST be present. If this bit is not set, this structure MUST NOT be present.

pub const HAS_WORKING_DIR: LinkFlags[src]

The shell link is saved with a relative path string. If this bit is set, a WORKING_DIR StringData structure (section 2.4) MUST be present. If this bit is not set, this structure MUST NOT be present.

pub const HAS_ARGUMENTS: LinkFlags[src]

The shell link is saved with a relative path string. If this bit is set, a COMMAND_LINE_ARGUMENTS StringData structure (section 2.4) MUST be present. If this bit is not set, this structure MUST NOT be present.

pub const HAS_ICON_LOCATION: LinkFlags[src]

The shell link is saved with a relative path string. If this bit is set, a ICON_LOCATION StringData structure (section 2.4) MUST be present. If this bit is not set, this structure MUST NOT be present.

pub const IS_UNICODE: LinkFlags[src]

The shell link contains Unicode encoded strings. This bit SHOULD be set. If this bit is set, the StringData section contains Unicode-encoded strings; otherwise, it contains strings that are encoded using the system default code page

The LinkInfo structure (section 2.3) is ignored.

pub const HAS_EXP_STRING: LinkFlags[src]

The shell link is saved with an EnvironmentVariableDataBlock (section 2.5.4).

pub const RUN_IN_SEPARATE_PROCESS: LinkFlags[src]

The target is run in a separate virtual machine when launching a link target that is a 16-bit application.

pub const UNUSED1: LinkFlags[src]

A bit that is undefined and MUST be ignored.

pub const HAS_DARWIN_ID: LinkFlags[src]

The shell link is saved with a DarwinDataBlock(section2.5.3).

pub const RUN_AS_USER: LinkFlags[src]

The application is run as a different user when the target of the shell link is activated.

pub const HAS_EXP_ICON: LinkFlags[src]

The shell link is saved with an IconEnvironmentDataBlock (section 2.5.5).

pub const NO_PIDL_ALIAS: LinkFlags[src]

The file system location is represented in the shell namespace when the path to an item is parsed into an IDList.

pub const UNUSED2: LinkFlags[src]

A bit that is undefined and MUST be ignored.

pub const RUN_WITH_SHIM_LAYER: LinkFlags[src]

The shell link is saved with a ShimDataBlock(section2.5.8)

The TrackerDataBlock(section2.5.10)is ignored.

pub const ENABLE_TARGET_METADATA: LinkFlags[src]

The shell link attempts to collect target properties and store them in the PropertyStoreDataBlock(section2.5.7) when the link target is set.

The EnvironmentVariableDataBlock is ignored.

pub const DISABLE_KNOWN_FOLDER_TRACKING: LinkFlags[src]

The SpecialFolderDataBlock(section2.5.9)and the KnownFolderDataBlock(section2.5.6)are ignored when loading the shell link. If this bit is set, these extra data blocks SHOULD NOT be saved when saving the shell link.

pub const DISABLE_KNOWN_FOLDER_ALIAS: LinkFlags[src]

If the linkhas a KnownFolderDataBlock(section2.5.6), the unaliased form of the known folder IDList SHOULD be used when translating the target IDList at the time that the link is loaded.

Creating a link that references another link is enabled. Otherwise, specifying a link as the target IDList SHOULD NOT be allowed.

pub const UNALIAS_ON_SAVE: LinkFlags[src]

When saving a link for which the target IDList is under a known folder, either the unaliased form of that known folder or the target IDList SHOULD be used.

pub const PREFER_ENVIRONMENT_PATH: LinkFlags[src]

The target IDList SHOULD NOT be stored; instead, the path specified in the EnvironmentVariableDataBlock(section2.5.4) SHOULD be used to refer to the target.

pub const KEEP_LOCAL_ID_LIST_FOR_UNC_TARGET: LinkFlags[src]

When the target is a UNC name that refers to a location on a local machine, the local path IDList in the PropertyStoreDataBlock(section2.5.7) SHOULD be stored, so it can be used when the link is loaded on the local machine.

pub const fn empty() -> LinkFlags[src]

Returns an empty set of flags

pub const fn all() -> LinkFlags[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u32[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u32) -> Option<LinkFlags>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: u32) -> LinkFlags[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(bits: u32) -> LinkFlags[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: LinkFlags) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: LinkFlags) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: LinkFlags)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: LinkFlags)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: LinkFlags)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: LinkFlags, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for LinkFlags[src]

impl BitAnd<LinkFlags> for LinkFlags[src]

type Output = LinkFlags

The resulting type after applying the & operator.

fn bitand(self, other: LinkFlags) -> LinkFlags[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<LinkFlags> for LinkFlags[src]

fn bitand_assign(&mut self, other: LinkFlags)[src]

Disables all flags disabled in the set.

impl BitOr<LinkFlags> for LinkFlags[src]

type Output = LinkFlags

The resulting type after applying the | operator.

fn bitor(self, other: LinkFlags) -> LinkFlags[src]

Returns the union of the two sets of flags.

impl BitOrAssign<LinkFlags> for LinkFlags[src]

fn bitor_assign(&mut self, other: LinkFlags)[src]

Adds the set of flags.

impl BitXor<LinkFlags> for LinkFlags[src]

type Output = LinkFlags

The resulting type after applying the ^ operator.

fn bitxor(self, other: LinkFlags) -> LinkFlags[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<LinkFlags> for LinkFlags[src]

fn bitxor_assign(&mut self, other: LinkFlags)[src]

Toggles the set of flags.

impl Clone for LinkFlags[src]

impl Copy for LinkFlags[src]

impl Debug for LinkFlags[src]

impl Eq for LinkFlags[src]

impl Extend<LinkFlags> for LinkFlags[src]

impl FromIterator<LinkFlags> for LinkFlags[src]

impl Hash for LinkFlags[src]

impl LowerHex for LinkFlags[src]

impl Not for LinkFlags[src]

type Output = LinkFlags

The resulting type after applying the ! operator.

fn not(self) -> LinkFlags[src]

Returns the complement of this set of flags.

impl Octal for LinkFlags[src]

impl Ord for LinkFlags[src]

impl PartialEq<LinkFlags> for LinkFlags[src]

impl PartialOrd<LinkFlags> for LinkFlags[src]

impl StructuralEq for LinkFlags[src]

impl StructuralPartialEq for LinkFlags[src]

impl Sub<LinkFlags> for LinkFlags[src]

type Output = LinkFlags

The resulting type after applying the - operator.

fn sub(self, other: LinkFlags) -> LinkFlags[src]

Returns the set difference of the two sets of flags.

impl SubAssign<LinkFlags> for LinkFlags[src]

fn sub_assign(&mut self, other: LinkFlags)[src]

Disables all flags enabled in the set.

impl UpperHex for LinkFlags[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.