A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
640 B

using System;
using System.Runtime.InteropServices;
namespace Avalonia.IntegrationTests.Win32;
internal static partial class UnmanagedMethods
{
[LibraryImport("user32.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool GetClientRect(IntPtr hwnd, out RECT lpRect);
[LibraryImport("user32.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool GetWindowRect(IntPtr hwnd, out RECT lpRect);
public struct RECT
{
public int left;
public int top;
public int right;
public int bottom;
}
}