values for Handle, Dword, etc

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
It depends of the context, but you may find this helpful.
http://discuss.fogcreek.com/joelonsoftware5/default.asp?cmd=show&ixPost=159129&ixReplies=9
ok so if i use RIDEV_INPUTSINK. what value should the hwndTarget be?

thanks
Your own? What are you doing?
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.
closed account (S6k9GNh0)
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.
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
closed account (S6k9GNh0)
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
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?
closed account (S6k9GNh0)
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
Topic archived. No new replies allowed.