Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LowLevelKeyboardProc hook procedure & registry defined timeouts

593 views
Skip to first unread message

denisp

unread,
Jul 18, 2006, 6:17:01 AM7/18/06
to
I'm using the 'LowLevelKeyboardProc' Keyboard Hook procedure set with
SetWindowsHookEx .

My 2 questions are :

1) timeouts :
registry key 'HKCU\Control Panel\Desktop\[DWORD]LowLevelHooksTimeout'
doesn't exist neither in W2000 nor XP on my computer. Is there any default
values set by Microsoft in order to prevent an infinite loop in the hook
procedure?

I was told that the default values were :
* 300ms (300) as default on startup
* 20ms after a crashdown

Could you please confirm these values and tell me if this is documented
anywhere, as when I don't create the registry entry above, it seems that my
hook procedure is ignored sometimes and keystrokes are interpreted normally.
I want to be sure that with the value 1000 (1s) I am doing right (everything
seems to be working then within my multithread context) .

2) unfiltered keys : it seems that the key combination <Windows Key>+'U' is
filetered with my 'LowLevelKeyboardProc' hook procedure on Windows XP but not
on Windows2000 (5.00.2195 Service Pack 4).
On the contrary, <Windows Key>+'E' seems to be filtered with my with
'LowLevelKeyboardProc' on both systems.

Thank you for your time

Vladimir Scherbina

unread,
Jul 18, 2006, 2:31:28 PM7/18/06
to
denisp,

this topic was discussed several months ago:
http://www.eggheadcafe.com/aspnet_answers/win32programmerkernel/Mar2006/post26344317.asp

--
Vladimir (Windows SDK MVP)

"denisp" <den...@discussions.microsoft.com> wrote in message
news:479BDB3F-5FE5-425F...@microsoft.com...

denisp

unread,
Jul 19, 2006, 4:08:01 AM7/19/06
to
I had read this article which can be briefed to the following :

"All aspects of LowLevelHooksTimeout should be documented"... and they are
not!!!

Could you please provide more extensive information on LowLevelHooksTimeout
than what is provided by MSDN ?

My question wasn't answered :

I was told that the default values for LowLevelHooksTimeout were :

* 300ms (300) as default on startup
* 20ms after a crashdown

Is this correct?
-----------------

Vladimir Scherbina

unread,
Jul 21, 2006, 1:01:12 AM7/21/06
to
"denisp" <den...@discussions.microsoft.com> wrote in message
news:692761BE-4F40-420D...@microsoft.com...

>I had read this article which can be briefed to the following :
>
> "All aspects of LowLevelHooksTimeout should be documented"... and they
> are
> not!!!
>
> Could you please provide more extensive information on
> LowLevelHooksTimeout
> than what is provided by MSDN ?
>
> My question wasn't answered :
>
> I was told that the default values for LowLevelHooksTimeout were :
> * 300ms (300) as default on startup
> * 20ms after a crashdown
>
> Is this correct?

Yes, this is correct.

0 new messages