SHGetFileInfo does not work for large icons

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nilam2477
    New Member
    • Feb 2008
    • 38

    SHGetFileInfo does not work for large icons

    I need to use SHGetFileInfo to display large icons.For small icon display it works fine. If i change the parameter to display large icon it does not display the file with large icon, it always displays small icon.

    hImgSmall = Win32.SHGetFile Info(fName, 0, ref shinfo, (uint)Marshal.S izeOf(shinfo), Win32.SHGFI_ICO N | Win32.SHGFI_SMA LLICON);

    hImgLarge = Win32.SHGetFile Info(fName, 0, ref shinfo, (uint)Marshal.S izeOf(shinfo), Win32.SHGFI_ICO N | Win32.SHGFI_LAR GEICON);
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Uhhh are those .NET functions? I don't have access to them.

    Comment

    Working...