tags:

views:

91

answers:

2

KEYEVENTF_SILENT is a constant used in calls like this one:

keybd_event(VK_OFF, 0, KEYEVENTF_SILENT, 0);
keybd_event(VK_OFF, 0, KEYEVENTF_SILENT | KEYEVENTF_KEYUP, 0);

But since I am using .net I don't know what the actual value of KEYEVENTF_SILENT is. I can't call it with out knowing.

Any ideas?

+1  A: 

Ah. Found it right after posting.

    public const byte VK_OFF = 0xDF;
    public const byte KEYEVENTF_KEYUP = 0x0002;
    public const byte KEYEVENTF_SILENT = 0x0004;
Vaccano
+1  A: 

To solve these issues, you should look at WinUser.h.

It comes with Visual C++ and with the Windows SDK (which is free), and can be found in the Headers folder.

SLaks
Where do I find that file?
Vaccano
I have Visual C++ but I never use it. I have no idea where the Headers folder is. Does it have a common location?
Vaccano
Somewhere in the installation directory. Search for `WinUser.h`.
SLaks
`C:\Program Files\Microsoft SDKs\Windows\v5.0\Include`
SLaks
Sweet! Thanks..
Vaccano