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.
 
Back
Top