Ejemplo n.º 1
0
        /// <summary>
        ///   Gets a handle to a cursor icon.
        /// </summary>
        /// 
        public static IconHandle GetCursorIcon(CursorInfo cursor)
        {
            IntPtr hIcon = NativeMethods.CopyIcon(cursor.hCursor);

            if (hIcon == IntPtr.Zero)
                return null;

            return new IconHandle(hIcon);
        }
 internal static extern bool GetCursorInfo(out CursorInfo pci);