2023-03-17 18:12:27 +00:00
|
|
|
|
// Copyright (c) Microsoft Corporation
|
|
|
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
|
|
|
using System.Runtime.InteropServices;
|
2024-09-16 16:09:43 -04:00
|
|
|
|
|
2024-10-21 17:38:07 +01:00
|
|
|
|
using static MouseJump.Common.NativeMethods.Core;
|
2023-03-17 18:12:27 +00:00
|
|
|
|
|
2024-10-21 17:38:07 +01:00
|
|
|
|
namespace MouseJump.Common.NativeMethods;
|
2023-03-17 18:12:27 +00:00
|
|
|
|
|
|
|
|
|
internal static partial class User32
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Retrieves a handle to the desktop window. The desktop window covers the entire
|
|
|
|
|
/// screen. The desktop window is the area on top of which other windows are painted.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>
|
|
|
|
|
/// The return value is a handle to the desktop window.
|
|
|
|
|
/// </returns>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// See https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getdesktopwindow
|
|
|
|
|
/// </remarks>
|
|
|
|
|
[LibraryImport(Libraries.User32)]
|
2023-04-24 16:15:07 +01:00
|
|
|
|
internal static partial HWND GetDesktopWindow();
|
2023-03-17 18:12:27 +00:00
|
|
|
|
}
|