mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -07:00
Fix structure definition, MAX_PATH is 260 and not 256
This commit is contained in:
parent
3755724535
commit
b10735f574
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ namespace GreenshotPlugin.UnmanagedHelpers {
|
||||||
public static extern int ExtractIconEx(string sFile, int iIndex, out IntPtr piLargeVersion, out IntPtr piSmallVersion, int amountIcons);
|
public static extern int ExtractIconEx(string sFile, int iIndex, out IntPtr piLargeVersion, out IntPtr piSmallVersion, int amountIcons);
|
||||||
[DllImport("shell32", CharSet = CharSet.Unicode)]
|
[DllImport("shell32", CharSet = CharSet.Unicode)]
|
||||||
internal static extern IntPtr ExtractAssociatedIcon(HandleRef hInst, StringBuilder iconPath, ref int index);
|
internal static extern IntPtr ExtractAssociatedIcon(HandleRef hInst, StringBuilder iconPath, ref int index);
|
||||||
[DllImport("Shell32.dll", CharSet = CharSet.Unicode)]
|
[DllImport("shell32", CharSet = CharSet.Unicode)]
|
||||||
private static extern IntPtr SHGetFileInfo(string pszPath, uint dwFileAttributes, ref SHFILEINFO psfi, uint cbFileInfo, uint uFlags);
|
private static extern IntPtr SHGetFileInfo(string pszPath, uint dwFileAttributes, ref SHFILEINFO psfi, uint cbFileInfo, uint uFlags);
|
||||||
|
|
||||||
#region Structs
|
#region Structs
|
||||||
|
@ -66,7 +66,7 @@ namespace GreenshotPlugin.UnmanagedHelpers {
|
||||||
public IntPtr hIcon;
|
public IntPtr hIcon;
|
||||||
public int iIcon;
|
public int iIcon;
|
||||||
public uint dwAttributes;
|
public uint dwAttributes;
|
||||||
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)]
|
||||||
public string szDisplayName;
|
public string szDisplayName;
|
||||||
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 80)]
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 80)]
|
||||||
public string szTypeName;
|
public string szTypeName;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue