using System; using System.Runtime.InteropServices; namespace Microsoft.Win32 { /// /// CURSORINFO定义 /// public static partial class NativeMethods { /// /// 光标信息 /// [StructLayout(LayoutKind.Sequential)] public struct CURSORINFO { /// /// Specifies the size, in bytes, of the structure. The caller must set this to Marshal.SizeOf(typeof(CURSORINFO)). /// public int cbSize; /// /// Specifies the cursor state. This parameter can be one of the following values:0 The cursor is hidden.1 The cursor is showing. /// public int flags; /// /// Handle to the cursor. /// public IntPtr hCursor; /// /// A POINT structure that receives the screen coordinates of the cursor. /// public POINT ptScreenPos; } } }