Elight.Utility/PopupTool/UnsafeMethods.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

#if NETFRAMEWORK || WINDOWS
using System;
using System.Drawing;
using System.Runtime.InteropServices;

internal class UnsafeMethods
{
    [DllImport("user32.dll")]
    public static extern IntPtr GetWindowDC(IntPtr hWnd);

    [DllImport("user32.dll")]
    public static extern int ReleaseDC(IntPtr hwnd, IntPtr hDC);

    [DllImport("user32")]
    public static extern bool TrackMouseEvent(ref UnsafeMethods.TRACKMOUSEEVENT lpEventTrack);

    [DllImport("user32.dll")]
    public static extern bool SendMessage(IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam);

    internal static int HIWORD(int n)
    {
        return n >> 16 & 65535;
    }

    internal static int HIWORD(IntPtr n)
    {
        return UnsafeMethods.HIWORD((int)((long)n));
    }

    internal static int LOWORD(int n)
    {
        return n & 65535;
    }

    internal static int LOWORD(IntPtr n)
    {
        return UnsafeMethods.LOWORD((int)((long)n));
    }

    public const int WM_LBUTTONDOWN = 513;

    public const int WM_RBUTTONDOWN = 516;

    public const int WM_MBUTTONDOWN = 519;

    public const int WM_NCLBUTTONDOWN = 161;

    public const int WM_NCRBUTTONDOWN = 164;

    public const int WM_NCMBUTTONDOWN = 167;

    public const int WM_NCCALCSIZE = 131;

    public const int WM_NCHITTEST = 132;

    public const int WM_NCPAINT = 133;

    public const int WM_NCACTIVATE = 134;

    public const int WM_MOUSELEAVE = 675;
后面还有 120 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。