I'm writing an application for a PDA;
* OS: Microsoft Windows Mobile 5.0
* lang: C# .Net 2.0
* IDE: Microsoft Visual Studio 2005
I wanted to override the green "call" button of the PDA. So the cprog.exe (default phone application does not launches. This succeeded using this code:
long res = SendMessage(SHFindMenuBar(this.Handle), SHCMBM_OVERRIDEKEY, VK_TTALK,
(SHMBOF_NODEFAULT | SHMBOF_NOTIFY) | (SHMBOF_NODEFAULT | SHMBOF_NOTIFY) << 16);
if (m.Msg == WM_HOTKEY)
int key = m.LParam.ToInt32() >> 16;
But once my application is minimized (thus still running on the background), the function of the "call" button hotkey is no longer triggerd and overridden by my application...
Is there a solution for this problem?
Kind regards and thanks for your effort