採用 winAPI 32 :user32.dll
參考網址:user32.dll API Reference for C#, VB.NET and VB6
先把滑鼠相關的函式分割出來
鼠標相關
1.SetSystemCursor

宣告方式
[DllImport("user32")] public static extern int SetSystemCursor(int hcur, int id) 
參數說明
hcur
A handle to the cursor to use as the new default cursor for a given type of cursor. The function destroys this handle once the new cursor is set.
id
Exactly one of the following flags specifying which of the Windows default cursors to redefine:
OCR_APPSTARTING = 32650
The application starting (arrow and hourglass) cursor.
OCR_CROSS = 32515
The cross-shaped cursor.
OCR_IBEAM = 32513
The text selection (I-beam) cursor.
OCR_ICON = 32641
Win NT only: The empty icon cursor.
OCR_NO = 32648
The "no"-symbol (circle with slash through it) cursor.
OCR_NORMAL = 32512
The normal arrow cursor.
OCR_SIZE = 32640
Win NT only: The four-arrow resize/move cursor.
OCR_SIZEALL = 32646
The four-arrow resize/move cursor.
OCR_SIZENESW = 32643
The double-arrow resize/move cursor pointing to the upper-right and lower-left.
OCR_SIZENS = 32645
The double-arrow resize/move cursor pointing up and down.
OCR_SIZENWSE = 32642
The double-arrow resize/move cursor pointing to the upper-left and lower-right.
OCR_SIZEWE = 32644
The double-arrow resize/move cursor pointing left and right.
OCR_UP = 32516
The up arrow cursor.
OCR_WAIT = 32514
The waiting (hourglass) cursor. 
英文敘述


using ...this function, since this redefines the default cursors instead of simply setting the current look of the cursor. The function destroys the cursor handle passed to it once it sets the new default cursor. The function returns 1 if successful, or 0 if an error occured. 2.ShowCursor

宣告方式
[DllImport("user32")] public static extern int ShowCursor(int bShow) 
參數說明
bShow
If zero, decrement the counter by 1. If non-zero, increment the counter by 1.
3.SetCursor

宣告方式
[DllImport("user32")] public static extern int SetCursor(int hCursor) 
參數說明
hCursor
The handle to the new cursor to use to represent the mouse pointer. 
英文敘述
Platforms: Win 32s, Win 95/98, Win NT SetCursor sets the image used to represent the mouse cursor. The new cursor can be any valid cursor that has either been created or loaded. If successful, the function returns a handle to the old cursor image. If unsuccessful, the function returns 0. SetCursor Sets the cursor shape. System.Windows.Forms.Cursor.Current 4.CopyCursor

宣告方式
[DllImport("user32")] public static extern int CopyCursor(int hcur) 等於 System.Windows.Forms.Cursor.CopyHandle