src/Core/Classes/NativeMethods.cs

(完整代码) 1KB

using System.Runtime.InteropServices;
using System;

namespace XRails.Classes
{
    internal static class NativeMethods
    {
        #region Cursor Functions

        /// <summary>
        /// Loads the specified cursor resource from the executable (.EXE) file
        /// associated with an application instance.
        /// </summary>
        ///
        /// <param name="hInstance">
        /// A handle to an instance of the module whose executable file contains the
        /// cursor to be loaded.
        /// </param>
        ///
        /// <param name="lpCursorName">
        /// The name of the cursor resource to be loaded.
        /// </param>
        [DllImport("user32.dll")]
        internal static extern IntPtr LoadCursor(IntPtr hInstance, int lpCursorName);

        /// <summary>
        /// Sets the cursor shape.
        /// </summary>
        ///
        /// <param name="hCursor">
        /// A handle to the cursor.
        /// </param>
        [DllImport("user32.dll")]
        internal static extern IntPtr SetCursor(IntPtr hCursor);

        #endregion
    }
}

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

AI 解读 AI

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

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