GetCursorInfo 函式 (winuser.h)

擷取全域資料指標的相關資訊。

語法

BOOL GetCursorInfo(
  [in, out] PCURSORINFO pci
);

參數

[in, out] pci

類型: PCURSORINFO

接收資訊的 CURSORINFO 結構的指標。 請注意,您必須先將 cbSize 成員設定為 sizeof(CURSORINFO) ,才能呼叫此函式。

傳回值

類型: BOOL

如果函式成功,則傳回非零的值。

如果此函式失敗,則傳回值為零。 若要取得擴充的錯誤資訊,請呼叫 GetLastError

規格需求

   
最低支援的用戶端 Windows 2000 專業版 [僅限傳統型應用程式]
最低支援的伺服器 Windows 2000 Server [僅限傳統型應用程式]
目標平台 Windows
標頭 winuser.h (包括 Windows.h)
程式庫 User32.lib
Dll User32.dll

另請參閱

CURSORINFO

概念

資料指標

GetGUIThreadInfo

參考