Nov 11, 2009 at 6:45am Nov 11, 2009 at 6:45am UTC
http://msdn.microsoft.com/en-us/library/ms645565(VS.85).aspx
the function that i want to use.
USHORT usUsagePage and usUsage are both information passed on by input device.
DWORD dwFlags is given on the page
my question is what about the possible values of HWND hwndTarget and the others how do i determine it?
Last edited on Nov 12, 2009 at 3:27pm Nov 12, 2009 at 3:27pm UTC
Nov 11, 2009 at 12:57pm Nov 11, 2009 at 12:57pm UTC
ok so if i use RIDEV_INPUTSINK. what value should the hwndTarget be?
thanks
Nov 11, 2009 at 1:50pm Nov 11, 2009 at 1:50pm UTC
Your own? What are you doing?
Nov 11, 2009 at 5:48pm Nov 11, 2009 at 5:48pm UTC
i dont have a clue since MS is not reli helpful in explaining where to get those values and where to find.
I am trying to write a c++ program so i can get a gaze tracker to work like a mouse moving the cursor.
I'm new to programming in c++ and i need help on working with raw functions in windows.
I understand the basic structure and concept where i can build command line programs that take numbers or strings and processes them.
Nov 11, 2009 at 6:21pm Nov 11, 2009 at 6:21pm UTC
The datatypes are actually just crappy macros. From experience I know that HWND means Window Handle and can also be seen as void * or a pointer of void. Somewhere on MSDN, look up datatypes. It will explain almost all of it for you, including showing you the actual define statement inside of the headers.
Nov 12, 2009 at 3:33pm Nov 12, 2009 at 3:33pm UTC
sorry msdn datatypes wasnt any help only showing how to declare stuff. Didnt give any help on where and how to determine the values of them
Nov 12, 2009 at 5:04pm Nov 12, 2009 at 5:04pm UTC
http://msdn.microsoft.com/en-us/library/aa383751(VS.85).aspx
Well that's strange! All I did was go to MSDN and type datatypes in the MSDN search bar!
I just realized that Microsoft declares BOOL as an integer..........
Last edited on Nov 12, 2009 at 5:04pm Nov 12, 2009 at 5:04pm UTC
Nov 12, 2009 at 5:58pm Nov 12, 2009 at 5:58pm UTC
o sorry i meant like what each value stand for eg:
#define RIDEV_REMOVE 0x00000001
#define RIDEV_EXCLUDE 0x00000010
#define RIDEV_PAGEONLY 0x00000020
#define RIDEV_NOLEGACY 0x00000030
#define RIDEV_INPUTSINK 0x00000100
etc
is there somewhere that lists them?
Nov 12, 2009 at 6:04pm Nov 12, 2009 at 6:04pm UTC
Yeah, it's http://msdn.microsoft.com/en-us/library/aa383751(VS.85).aspx
This are the Microsoft datatypes. If you want specific datatypes corresponding to WinAPI structures, look at the documentation for that structure.
Last edited on Nov 12, 2009 at 6:06pm Nov 12, 2009 at 6:06pm UTC