Aether Utilities Aether Utilities
Aether Utilities Aether Utilities
DocFX + Singulink = ♥

Search Results for

    Edit this page

    Class Shell32

    Namespace
    AetherUtils.Core.WinForms
    Assembly
    AetherUtils.Core.dll
    Wraps necessary Shell32.dll structures and functions required to retrieve Icon Handles using SHGetFileInfo. Code courtesy of MSDN Cold Rooster Consulting case study.
    [UsedImplicitly]
    public class Shell32
    Inheritance
    object
    Shell32
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Extension Methods
    TypeExtensions.CanSerializeJson<T>(T)
    TypeExtensions.CanSerializeXml<T>(T)
    TypeExtensions.SerializeJson<T>(T)
    TypeExtensions.SerializeXml<T>(T)

    Fields

    BIF_BROWSEFORCOMPUTER

    public const uint BIF_BROWSEFORCOMPUTER = 4096

    Field Value

    uint

    BIF_BROWSEFORPRINTER

    public const uint BIF_BROWSEFORPRINTER = 8192

    Field Value

    uint

    BIF_BROWSEINCLUDEFILES

    public const uint BIF_BROWSEINCLUDEFILES = 16384

    Field Value

    uint

    BIF_BROWSEINCLUDEURLS

    public const uint BIF_BROWSEINCLUDEURLS = 128

    Field Value

    uint

    BIF_DONTGOBELOWDOMAIN

    public const uint BIF_DONTGOBELOWDOMAIN = 2

    Field Value

    uint

    BIF_EDITBOX

    public const uint BIF_EDITBOX = 16

    Field Value

    uint

    BIF_NEWDIALOGSTYLE

    public const uint BIF_NEWDIALOGSTYLE = 64

    Field Value

    uint

    BIF_RETURNFSANCESTORS

    public const uint BIF_RETURNFSANCESTORS = 8

    Field Value

    uint

    BIF_RETURNONLYFSDIRS

    public const uint BIF_RETURNONLYFSDIRS = 1

    Field Value

    uint

    BIF_SHAREABLE

    public const uint BIF_SHAREABLE = 32768

    Field Value

    uint

    BIF_STATUSTEXT

    public const uint BIF_STATUSTEXT = 4

    Field Value

    uint

    BIF_USENEWUI

    public const uint BIF_USENEWUI = 80

    Field Value

    uint

    BIF_VALIDATE

    public const uint BIF_VALIDATE = 32

    Field Value

    uint

    FILE_ATTRIBUTE_DIRECTORY

    public const uint FILE_ATTRIBUTE_DIRECTORY = 16

    Field Value

    uint

    FILE_ATTRIBUTE_NORMAL

    public const uint FILE_ATTRIBUTE_NORMAL = 128

    Field Value

    uint

    MAX_PATH

    public const int MAX_PATH = 256

    Field Value

    int

    SHGFI_ADDOVERLAYS

    public const uint SHGFI_ADDOVERLAYS = 32

    Field Value

    uint

    SHGFI_ATTRIBUTES

    public const uint SHGFI_ATTRIBUTES = 2048

    Field Value

    uint

    SHGFI_ATTR_SPECIFIED

    public const uint SHGFI_ATTR_SPECIFIED = 131072

    Field Value

    uint

    SHGFI_DISPLAYNAME

    public const uint SHGFI_DISPLAYNAME = 512

    Field Value

    uint

    SHGFI_EXETYPE

    public const uint SHGFI_EXETYPE = 8192

    Field Value

    uint

    SHGFI_ICON

    public const uint SHGFI_ICON = 256

    Field Value

    uint

    SHGFI_ICONLOCATION

    public const uint SHGFI_ICONLOCATION = 4096

    Field Value

    uint

    SHGFI_LARGEICON

    public const uint SHGFI_LARGEICON = 0

    Field Value

    uint

    SHGFI_LINKOVERLAY

    public const uint SHGFI_LINKOVERLAY = 32768

    Field Value

    uint

    SHGFI_OPENICON

    public const uint SHGFI_OPENICON = 2

    Field Value

    uint

    SHGFI_OVERLAYINDEX

    public const uint SHGFI_OVERLAYINDEX = 64

    Field Value

    uint

    SHGFI_PIDL

    public const uint SHGFI_PIDL = 8

    Field Value

    uint

    SHGFI_SELECTED

    public const uint SHGFI_SELECTED = 65536

    Field Value

    uint

    SHGFI_SHELLICONSIZE

    public const uint SHGFI_SHELLICONSIZE = 4

    Field Value

    uint

    SHGFI_SMALLICON

    public const uint SHGFI_SMALLICON = 1

    Field Value

    uint

    SHGFI_SYSICONINDEX

    public const uint SHGFI_SYSICONINDEX = 16384

    Field Value

    uint

    SHGFI_TYPENAME

    public const uint SHGFI_TYPENAME = 1024

    Field Value

    uint

    SHGFI_USEFILEATTRIBUTES

    public const uint SHGFI_USEFILEATTRIBUTES = 16

    Field Value

    uint

    Methods

    SHGetFileInfo(string, uint, ref SHFILEINFO, uint, uint)

    public static extern nint SHGetFileInfo(string pszPath, uint dwFileAttributes, ref Shell32.SHFILEINFO psfi, uint cbFileInfo, uint uFlags)

    Parameters

    pszPath string
    dwFileAttributes uint
    psfi Shell32.SHFILEINFO
    cbFileInfo uint
    uFlags uint

    Returns

    nint
    (c) 2024 Ethan Hann. All rights reserved.