示例#1
0
 public static string GetCursorShape()
 {
     try
     {
         WindowsAPI.CURSORINFO pci = new WindowsAPI.CURSORINFO();
         pci.cbSize = Marshal.SizeOf <WindowsAPI.CURSORINFO>(pci);
         WindowsAPI.GetCursorInfo(out pci);
         if (pci.flags == 1)
         {
             return(new Cursor(pci.hCursor).ToString());
         }
         return("(Hidden)");
     }
     catch (Exception ex)
     {
         return("(Failure)");
     }
 }
示例#2
0
 private static extern bool GetCursorInfo(out WindowsAPI.CURSORINFO pci);