|
|
@ -841,14 +841,13 @@ namespace Avalonia.Win32.Interop |
|
|
|
|
|
|
|
|
return SetClassLong64(hWnd, nIndex, dwNewLong); |
|
|
return SetClassLong64(hWnd, nIndex, dwNewLong); |
|
|
} |
|
|
} |
|
|
#if !NETSTANDARD && !NETSTANDARD2_0
|
|
|
|
|
|
[ComImport, ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FCanCreate), Guid("DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7")] |
|
|
[ComImport, ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FCanCreate), Guid("DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7")] |
|
|
internal class FileOpenDialogRCW { } |
|
|
internal class FileOpenDialogRCW { } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[DllImport("shell32.dll", CharSet = CharSet.Unicode, SetLastError = true)] |
|
|
[DllImport("shell32.dll", CharSet = CharSet.Unicode, SetLastError = true)] |
|
|
internal static extern int SHCreateItemFromParsingName([MarshalAs(UnmanagedType.LPWStr)] string pszPath, IntPtr pbc, ref Guid riid, [MarshalAs(UnmanagedType.Interface)] out IShellItem ppv); |
|
|
internal static extern int SHCreateItemFromParsingName([MarshalAs(UnmanagedType.LPWStr)] string pszPath, IntPtr pbc, ref Guid riid, [MarshalAs(UnmanagedType.Interface)] out IShellItem ppv); |
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
[DllImport("user32.dll", SetLastError = true)] |
|
|
[DllImport("user32.dll", SetLastError = true)] |
|
|
public static extern bool OpenClipboard(IntPtr hWndOwner); |
|
|
public static extern bool OpenClipboard(IntPtr hWndOwner); |
|
|
@ -1183,7 +1182,7 @@ namespace Avalonia.Win32.Interop |
|
|
public int flagsEx; |
|
|
public int flagsEx; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
#if !NETSTANDARD && !NETSTANDARD1_3
|
|
|
|
|
|
[ComImport(), Guid("42F85136-DB7E-439C-85F1-E4075D135FC8"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] |
|
|
[ComImport(), Guid("42F85136-DB7E-439C-85F1-E4075D135FC8"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] |
|
|
internal interface IFileDialog |
|
|
internal interface IFileDialog |
|
|
{ |
|
|
{ |
|
|
@ -1283,5 +1282,4 @@ namespace Avalonia.Win32.Interop |
|
|
uint Compare([In, MarshalAs(UnmanagedType.Interface)] IShellItem psi, [In] uint hint, out int piOrder); |
|
|
uint Compare([In, MarshalAs(UnmanagedType.Interface)] IShellItem psi, [In] uint hint, out int piOrder); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
#endif
|
|
|
|
|
|
} |
|
|
} |
|
|
|