Desktop Functions: Smart Device Functions:
|
Search Results for "shgetfileinfo" in [All]Structures1: SHFILEINFO Used by the SHGetFileInfo. shell32
public static extern IntPtr SHGetFileInfo(string pszPath, uint dwFileAttributes, ref SHFILEINFO psfi, uint cbFileInfo, uint uFlags);
Function SHGetFileInfo _ For a whole winform sample of Displayname see http://Dzaebel.NET/ShGetFileInfo.htm
private static extern int SHGetFileInfo(
SHGetFileInfo(strPath, 256, out info,(uint)cbFileInfo, flags);
public static extern IntPtr SHGetFileInfo(string pszPath, uint dwFileAttributes, ref SHFILEINFO psfi, uint cbSizeFileInfo, uint uFlags);
IntPtr hImgSmall = Win32.SHGetFileInfo(fileName, 0, ref shinfo, (uint)Marshal.SizeOf(shinfo), Win32.SHGFI_ICON | flags); |