yangyin
2025-02-24 b3b65a002fe68b1383314098790f5a153b87765f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#region Imports
 
using System;
using System.Runtime.InteropServices;
 
#endregion
 
namespace DPumpHydr.WinFrmUI.RLT.Util
{
    #region NightUtil
 
    internal class NativeConstants
    {
        internal const int IDC_HAND = 0x7F89;
        internal const int WM_SETCURSOR = 0x0020;
    }
 
    internal static class NativeMethods
    {
        #region Cursor Functions
 
        [DllImport("user32.dll")]
        internal static extern IntPtr LoadCursor(IntPtr hInstance, int lpCursorName);
 
        [DllImport("user32.dll")]
        internal static extern IntPtr SetCursor(IntPtr hCursor);
 
        #endregion
    }
 
    #endregion
}