POINTER_DEVICE_INFO結構 (winuser.h)
包含指標裝置的相關資訊。 這些結構的陣列會從 GetPointerDevices 函式傳回。 從 呼叫 GetPointerDevice 函式傳回單一結構。
語法
typedef struct tagPOINTER_DEVICE_INFO {
DWORD displayOrientation;
HANDLE device;
POINTER_DEVICE_TYPE pointerDeviceType;
HMONITOR monitor;
ULONG startingCursorId;
USHORT maxActiveContacts;
WCHAR productString[POINTER_DEVICE_PRODUCT_STRING_MAX];
} POINTER_DEVICE_INFO;
成員
displayOrientation
DISPLAYCONFIG_ROTATION的其中一個值,可識別輸入數位板的方向。
注意 當輸入來源為 Touch Injection時,這個值為 0。
device
指標裝置的控制碼。
pointerDeviceType
裝置類型。
monitor
裝置所對應的顯示器 HMONITOR。 這不一定是指標裝置實際連接的監視器。
startingCursorId
指派給裝置的最低識別碼。
maxActiveContacts
同時支援的連絡人數目。
productString[POINTER_DEVICE_PRODUCT_STRING_MAX]
識別產品的字串。
規格需求
最低支援的用戶端 | Windows 8 [僅限傳統型應用程式] |
最低支援的伺服器 | Windows Server 2012 [僅限傳統型應用程式] |
標頭 | winuser.h |