Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

SHGSI (Enums)
 
.
Summary
Used by SHGetStockIconInfo to determine the information to be retrieved for a stock icon.

C# Definition:

[Flags]
public enum SHGSI : uint
{
    /// <summary>The szPath and iIcon members of the SHSTOCKICONINFO structure receive the path and icon index of the requested icon, in a format suitable for passing to the ExtractIcon function. The numerical value of this flag is zero, so you always get the icon location regardless of other flags.</summary>
    SHGSI_ICONLOCATION = 0,
    /// <summary>The hIcon member of the SHSTOCKICONINFO structure receives a handle to the specified icon.</summary>
    SHGSI_ICON = 0x000000100,
    /// <summary>The iSysImageImage member of the SHSTOCKICONINFO structure receives the index of the specified icon in the system imagelist.</summary>
    SHGSI_SYSICONINDEX = 0x000004000,
    /// <summary>Modifies the SHGSI_ICON value by causing the function to add the link overlay to the file's icon.</summary>
    SHGSI_LINKOVERLAY = 0x000008000,
    /// <summary>Modifies the SHGSI_ICON value by causing the function to blend the icon with the system highlight color.</summary>
    SHGSI_SELECTED = 0x000010000,
    /// <summary>Modifies the SHGSI_ICON value by causing the function to retrieve the large version of the icon, as specified by the SM_CXICON and SM_CYICON system metrics.</summary>
    SHGSI_LARGEICON = 0x000000000,
    /// <summary>Modifies the SHGSI_ICON value by causing the function to retrieve the small version of the icon, as specified by the SM_CXSMICON and SM_CYSMICON system metrics.</summary>
    SHGSI_SMALLICON = 0x000000001,
    /// <summary>Modifies the SHGSI_LARGEICON or SHGSI_SMALLICON values by causing the function to retrieve the Shell-sized icons rather than the sizes specified by the system metrics.</summary>
    SHGSI_SHELLICONSIZE = 0x000000004
}

VB Definition:

    <Flags()> _
    Public Enum SHGSI As UInteger
    SHGSI_ICONLOCATION = 0
    SHGSI_ICON = &H100
    SHGSI_SYSICONINDEX = &H4000
    SHGSI_LINKOVERLAY = &H8000
    SHGSI_SELECTED = &H10000
    SHGSI_LARGEICON = &H0
    SHGSI_SMALLICON = &H1
    SHGSI_SHELLICONSIZE = &H4
    End Enum
Enum SHGSI
   TODO
End Enum

Notes:

None.

Documentation
SHGSI on MSDN
 

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it!

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions