GetIconLocationFlags Enumeration

Definition

Namespace: DevCase.Win32.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[FlagsAttribute]
public enum GetIconLocationFlags

Remarks

Members

Null 0 Null flag.
OpenIcon 1 The icon is in the open state if both open-state and closed-state images are available.

If this flag is not specified, the icon is in the normal or closed state.

This flag is typically used for folder objects.

ForShell 2 The icon is displayed in a Shell folder.
Async 32 Set this flag to determine whether the icon should be extracted asynchronously.

If the icon can be extracted rapidly, this flag is usually ignored.

If extraction will take more time, GetIconLocation(GetIconLocationFlags, StringBuilder, Int32, Int32, GetIconLocationResultFlags) and GetIconLocation(GetIconLocationFlags, StringBuilder, Int32, Int32, GetIconLocationResultFlags) should return E_PENDING.

DefaultIcon 64 Retrieve information about the fallback icon.

Fallback icons are usually used while the desired icon is extracted and added to the cache.

ForShortcut 128 The icon indicates a shortcut. However, the icon extractor should not apply the shortcut overlay; that will be done later.

Shortcut icons are state-independent.

CheckShield 512 Explicitly return either Shield or ForceNoShield in refFlags param of GetIconLocation(GetIconLocationFlags, StringBuilder, Int32, Int32, GetIconLocationResultFlags) and GetIconLocation(GetIconLocationFlags, StringBuilder, Int32, Int32, GetIconLocationResultFlags) functions.

Do not block if Async is set.

See Also