ioctl talking to drivers

Hi,

I've been trying to research on how to communicate with device drivers.

I've gathered that I have to obtain a device handle, and I have to know control codes and possibly data structures associated with what's being dealt with. At least this is what I think... I could be completely wrong.

I'm basically asking for advice, as I'm finding it hard to learn all this stuff when it comes to interfacing with hardware. One thing that I can't work out is how do I find control codes for unusual hardware?

I have a Surface Pro 3 and originally wanted to detect when the capacitive Windows button is activated. Should I even be attempting to solve this problem in this way? Can I somehow modify the driver (SurfaceCapacitiveHomeButton.sys)?

Thanks for any advice anyone can provide!
Topic archived. No new replies allowed.