|
|
|
@ -841,14 +841,14 @@ namespace Avalonia.Win32.Interop |
|
|
|
|
|
|
|
return SetClassLong64(hWnd, nIndex, dwNewLong); |
|
|
|
} |
|
|
|
#if !NETSTANDARD && !NETSTANDARD2_0
|
|
|
|
[ComImport, ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FCanCreate), Guid("DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7")] |
|
|
|
internal class FileOpenDialogRCW { } |
|
|
|
|
|
|
|
[DllImport("ole32.dll", PreserveSig = true)] |
|
|
|
internal static extern int CoCreateInstance(ref Guid clsid, |
|
|
|
IntPtr ignore1, int ignore2, ref Guid iid, [MarshalAs(UnmanagedType.IUnknown), Out] out object pUnkOuter); |
|
|
|
|
|
|
|
|
|
|
|
[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); |
|
|
|
#endif
|
|
|
|
|
|
|
|
[DllImport("user32.dll", SetLastError = true)] |
|
|
|
public static extern bool OpenClipboard(IntPtr hWndOwner); |
|
|
|
@ -1183,7 +1183,7 @@ namespace Avalonia.Win32.Interop |
|
|
|
public int flagsEx; |
|
|
|
} |
|
|
|
} |
|
|
|
#if !NETSTANDARD && !NETSTANDARD1_3
|
|
|
|
|
|
|
|
[ComImport(), Guid("42F85136-DB7E-439C-85F1-E4075D135FC8"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] |
|
|
|
internal interface IFileDialog |
|
|
|
{ |
|
|
|
@ -1283,5 +1283,4 @@ namespace Avalonia.Win32.Interop |
|
|
|
uint Compare([In, MarshalAs(UnmanagedType.Interface)] IShellItem psi, [In] uint hint, out int piOrder); |
|
|
|
|
|
|
|
} |
|
|
|
#endif
|
|
|
|
} |
|
|
|
|