共用方式為


GetPointerDeviceProperties 函式 (winuser.h)

取得 POINTER_DEVICE_INFO結構中 未包含的裝置屬性。

語法

BOOL GetPointerDeviceProperties(
  [in]            HANDLE                  device,
  [in, out]       UINT32                  *propertyCount,
  [out, optional] POINTER_DEVICE_PROPERTY *pointerProperties
);

參數

[in] device

要從中查詢屬性的指標裝置。

GetPointerDevices 函式的呼叫會在 POINTER_DEVICE_INFO 結構中傳回這個句柄。

[in, out] propertyCount

屬性的數目。

如果 pointerProperties 為 NULL,則傳回寫入或所需的計數。

如果這個值小於指標裝置支援的屬性數目, 且pointerProperties 不是NULL,則函式會傳回此變數中的實際屬性數目並失敗。

[out, optional] pointerProperties

屬性的陣列。

傳回值

如果函式成功,則為 TRUE,否則為 FALSE。 如果函式失敗,請呼叫 GetLastError 函式以取得詳細資訊。

規格需求

需求
最低支援的用戶端 Windows 8 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2012 [僅限傳統型應用程式]
目標平台 Windows
標頭 winuser.h
程式庫 User32.lib
Dll User32.dll

請參閱

函式