mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
marshal return types, add CharSet.Unicode to functions that lack it, marshal BOOL parameters
This commit is contained in:
parent
e9ab99c5ac
commit
d780d337e4
7 changed files with 18 additions and 10 deletions
|
@ -49,12 +49,12 @@ namespace GreenshotPlugin.UnmanagedHelpers {
|
|||
public SHITEMID mkid;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
|
||||
private struct BROWSEINFO {
|
||||
public IntPtr hwndOwner;
|
||||
public IntPtr pidlRoot;
|
||||
public IntPtr pszDisplayName;
|
||||
[MarshalAs(UnmanagedType.LPTStr)]
|
||||
[MarshalAs(UnmanagedType.LPWStr)]
|
||||
public string lpszTitle;
|
||||
public uint ulFlags;
|
||||
public IntPtr lpfn;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue