I use RegisterHotKey to intercept the hardware buttons and I can capture them
on different PDAs but on my h6315, I can not intercept the hardware keys for
Phone and Disconnect.

Any advice is greatly appreciated.

Vu

Re: RegisterHotKey by Peter

Peter
Sat Apr 02 07:52:58 CST 2005

One difference is that all the application hardware buttons use the Windows
key modifier, but the call and hangup buttons do not - so pass 0 for the key
modifier argument of RegisterHotKey. The key codes themselves are:-

0x72 - Call
0x73 - Hangup

Peter

--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://blog.opennetcf.org/pfoot/

"Vu" <Vu@discussions.microsoft.com> wrote in message
news:C5038332-3C73-4511-9DCB-9FF17BBC6C6E@microsoft.com...
>I use RegisterHotKey to intercept the hardware buttons and I can capture
>them
> on different PDAs but on my h6315, I can not intercept the hardware keys
> for
> Phone and Disconnect.
>
> Any advice is greatly appreciated.
>
> Vu



Re: RegisterHotKey by Vu

Vu
Sat Apr 02 08:57:02 CST 2005

"Peter Foot [MVP]" wrote:

> One difference is that all the application hardware buttons use the Windows
> key modifier, but the call and hangup buttons do not - so pass 0 for the key
> modifier argument of RegisterHotKey. The key codes themselves are:-
>
> 0x72 - Call
> 0x73 - Hangup

Pether,

Thanks for your prompt reply. I added the following code into the hotkey
registration but I still can not get them.

UnregisterHotKey( NULL, 0x72);
RegisterHotKey(hWnd, 0x72, 0, 0x72);
UnregisterHotKey( NULL, 0x73);
RegisterHotKey(hWnd, 0x73, 0, 0x73);

Do I miss something ?

Thanks,

Vu


>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> http://www.inthehand.com | http://blog.opennetcf.org/pfoot/
>
> "Vu" <Vu@discussions.microsoft.com> wrote in message
> news:C5038332-3C73-4511-9DCB-9FF17BBC6C6E@microsoft.com...
> >I use RegisterHotKey to intercept the hardware buttons and I can capture
> >them
> > on different PDAs but on my h6315, I can not intercept the hardware keys
> > for
> > Phone and Disconnect.
> >
> > Any advice is greatly appreciated.
> >
> > Vu
>
>
>

Re: RegisterHotKey by Vu

Vu
Sat Apr 02 23:37:01 CST 2005

"Peter Foot [MVP]" wrote:

> One difference is that all the application hardware buttons use the Windows
> key modifier, but the call and hangup buttons do not - so pass 0 for the key
> modifier argument of RegisterHotKey. The key codes themselves are:-
>
> 0x72 - Call
> 0x73 - Hangup
>

Peter,

I can make it now. I use the UnregisterHotkey from coredll.dll instead of
the API UnRegisterHotKey.

I thought UnRegisterHotKey is the published version of the "load
coredll.dll" method, but I am wrong.

What's the difference ?

Thanks,

Vu