Author Topic: How to reach Windows function GetSystemMetrics from my usb hid device?  (Read 10015 times)

Const50

  • Member
  • ***
  • Posts: 2
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?

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: How to reach Windows function GetSystemMetrics from my usb hid device?
« Reply #1 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.

Const50

  • Member
  • ***
  • Posts: 2
Re: How to reach Windows function GetSystemMetrics from my usb hid device?
« Reply #2 on: September 26, 2012, 09:22:02 pm »
By another words: I must make specific driver, isn't it?

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: How to reach Windows function GetSystemMetrics from my usb hid device?
« Reply #3 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