AutoPatientInfoRecorder/src/AntdUI/Lib/Vanara/User32/WinUser.Message.cs
(开头部分) 33KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// THIS FILE IS PART OF Vanara PROJECT
// THE Vanara PROJECT IS AN OPENSOURCE LIBRARY LICENSED UNDER THE MIT License.
// COPYRIGHT (C) dahall. ALL RIGHTS RESERVED.
// GITHUB: https://github.com/dahall/Vanara
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace Vanara.PInvoke
{
public static partial class User32
{
/// <summary>
/// <para>Retrieves the cursor position for the last message retrieved by the GetMessage function.</para>
/// <para>To determine the current position of the cursor, use the GetCursorPos function.</para>
/// </summary>
/// <returns>
/// <para>Type: <c>Type: <c>DWORD</c></c></para>
/// <para>
/// The return value specifies the x- and y-coordinates of the cursor position. The x-coordinate is the low order <c>short</c> and
/// the y-coordinate is the high-order <c>short</c>.
/// </para>
/// </returns>
/// <remarks>
/// <para>
/// As noted above, the x-coordinate is in the low-order <c>short</c> of the return value; the y-coordinate is in the high-order
/// <c>short</c> (both represent signed values because they can take negative values on systems with multiple monitors). If the
/// return value is assigned to a variable, you can use the MAKEPOINTS macro to obtain a POINTS structure from the return value. You
/// can also use the GET_X_LPARAM or GET_Y_LPARAM macro to extract the x- or y-coordinate.
/// </para>
/// <para>
/// <c>Important</c> Do not use the LOWORD or HIWORD macros to extract the x- and y- coordinates of the cursor position because these
/// macros return incorrect results on systems with multiple monitors. Systems with multiple monitors can have negative x- and y-
/// coordinates, and <c>LOWORD</c> and <c>HIWORD</c> treat the coordinates as unsigned quantities.
/// </para>
/// </remarks>
// https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-getmessagepos DWORD GetMessagePos( );
[DllImport("user32.dll", SetLastError = false, ExactSpelling = true)]
[PInvokeData("winuser.h")]
public static extern uint GetMessagePos();
/// <summary>
/// <para>
/// Places (posts) a message in the message queue associated with the thread that created the specified window and returns without
/// waiting for the thread to process the message.
/// </para>
/// <para>To post a message in the message queue associated with a thread, use the PostThreadMessage function.</para>
/// </summary>
/// <param name="hWnd">
/// <para>Type: <c>HWND</c></para>
/// <para>A handle to the window whose window procedure is to receive the message. The following values have special meanings.</para>
/// <list type="table">
/// <listheader>
/// <term>Value</term>
/// <term>Meaning</term>
/// </listheader>
/// <item>
/// <term>HWND_BROADCAST ((HWND)0xffff)</term>
/// <term>
后面还有 496 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。