RegisterRawInputDevices() undefined

Hi guys, very new to C++, But my job is calling me to make a program that reads from a HID device other than the keyboard.
Someone has pointed me at using the function RegisterRawInputDevices() but I'm not really sure how to use it, and as it stands this code will not work as the error is saying the function isnt defined, so im failing at step one lol. Could someone help me understand where to go from here. Or just let me know what I need to include to get raw input functions working.

1
2
3
4
5
#include <Windows.h>

int main(){
	RegisterRawInputDevices();
}
That cannot compile because the function has 3 parameters. See http://msdn.microsoft.com/en-us/library/ms645600(VS.85).aspx for details.
Ohh my that was dumb of me. Alough looking on msdn I can't quite figure out what each paramter is actualy asking for, do you think you could give me an example or description of the parameters, thank you
Hi. No, sorry. I have never used the function before, nor do I have experience with HID's. :-( Search the net for examples.
Topic archived. No new replies allowed.