Torna al Thread
[StructLayout(LayoutKind::Sequential)]
public value class SHFILEINFO
{
public:
IntPtr hIcon;
IntPtr iIcon;
System::UInt32 dwAttributes;
[MarshalAs(UnmanagedType::ByValTStr, SizeConst=260)]
String ^szDisplayName;
[MarshalAs(UnmanagedType::ByValTStr, SizeConst=80)]
String ^szTypeName;
};
[DllImport("shell32.dll")]
extern IntPtr SHGetFileInfo(String ^pszPath, System::UInt32 dwFileAttributes, SHFILEINFO ^%psfi, System::UInt32 cbSizeFileInfo, System::UInt32 uFlags);