PORTS Forum

Ports and Interfaces => USB => Topic started by: Const50 on September 26, 2012, 10:03:38 am

Title: How to reach Windows function GetSystemMetrics from my usb hid device?
Post by: Const50 on September 26, 2012, 10:03:38 am
We develop now the mouse like device and it needs PC display screen parameters , screen X and Y size. We use HID descriptor for device, but we can’t understand, is it possible and how to transfer Windows function GetSystemMetrics (SM_CX(Y)Screen) to device over USB. Could you prompt it?
Title: Re: How to reach Windows function GetSystemMetrics from my usb hid device?
Post by: Jan Axelson on September 26, 2012, 02:10:46 pm
You could define a vendor-specific Feature report to transfer vendor-specific data. You would need an application or driver to send the data to the mouse.
Title: Re: How to reach Windows function GetSystemMetrics from my usb hid device?
Post by: Const50 on September 26, 2012, 09:22:02 pm
By another words: I must make specific driver, isn't it?
Title: Re: How to reach Windows function GetSystemMetrics from my usb hid device?
Post by: Jan Axelson on September 27, 2012, 10:40:03 am
Or an application. I have example code for Feature reports here:

http://www.lvr.com/hidpage.htm#MyExampleCode