RegisterHotKey

  • Thread starter Thread starter Muhammad Arif
  • Start date Start date
M

Muhammad Arif

There are two question related to RegisterHotKey:
1- For what purpose the RegisterHotKey function is used (Write in detail)?
2- How I can use it to register ( Ctrl + Alt + R )

Regards,
Arif
 
Arif,

The information on the API's you can easily get from the documentation
that's installed with either SDK:
http://msdn.microsoft.com/mobility/downloads/sdks/default.aspx

You can check out the docs on RegisterHotKey here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdkr/htm
l/_wcesdk_Win32_RegisterHotKey.asp

Here're some values for constants that you can find in the ../Include
directory in the winuser.h after installing SDK:

#define MOD_ALT 0x0001
#define MOD_CONTROL 0x0002
#define MOD_SHIFT 0x0004
#define MOD_WIN 0x0008
#define MOD_KEYUP 0x1000

For VB.NET you'd translate them like that:
const MOD_ALT = &H0001
const MOD_CONTROL = &H0002
.....
etc...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top