Hi,

I need to invoke an application on press & hold of a hard key using
evc++. I am creating the application for pocket pc. I tried using the
RegisterHotKey API with MOD_HOLD as parameter. The below line gives an
error. When I tried to capture the error using GetLastError(), it
returns 6.

BOOL bRet = RegisterHotKey(mhwnd, 0x006A, MOD_HOLD, VK_TTALK);

I am not sure what is the cause of this error. MOD_HOLD is not
documented is MSDN. When I look into the winuserm.h, it is mentioned as
below,

// Extension of WM_HOTKEY MOD_* values for Mobile
#define MOD_HOLD 0x8000 // Was WM_HOTKEY caused by
Press&Hold

Please help me to solve this issue. Please let me know if there is any
other way of doing the same(invoking the application on Press & hold of
a hard key)

Thanks