How can I process keboard-entries from the SIP (Hotkeys)?

  • Thread starter Thread starter Roberto Rocco
  • Start date Start date
R

Roberto Rocco

Hello,

I want to process special hotkeys entered from the SIP, e.g. CTRL-Q to terminate an application, etc.
Is there a way to process these events using the Cpmpact Framework and C#?
If not is there another way using some API calls directly? If so, which?

Many thanks in advance,

Roberto Rocco.
 
The OpenNETCF ApplicationEx class will allow you to process special keys of
that sort. You'd want to look for the WM_KEYDOWN message with a wParam of
(IntPtr)'Q', with the control key also pressed (you can P/Invoke
GetKeyState() to check that), and do whatever you do.

Paul T.

Hello,

I want to process special hotkeys entered from the SIP, e.g. CTRL-Q to
terminate an application, etc.
Is there a way to process these events using the Cpmpact Framework and C#?
If not is there another way using some API calls directly? If so, which?

Many thanks in advance,

Roberto Rocco.
 

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