hi all.
I encounter a problem.I dont know how to solve it.Could you help me?
My problem is:
I use API function SetWindowsHookEx to create a global keyboard hook.In the hook procedure,the program will receive the key strike message(only key F1-F12 will be handled),and then to run a application specified by the user.The program worked very well.But if the user use F1 key to run a application,the windows help file will appear,but this is not my intention( also key F3,the Find dialog will appear)
.How can i solve this problem.Thank you in advance.
Posted on 2004-02-11 07:41:00 by Rey
Return 1 in the Hook-proc and no applications will recieve any key-down-messages.

Atleast I think that would work...
Posted on 2004-02-11 09:08:17 by Delight
Sorry,it does not work.
I've try what you say before ,but it did not work at all.
It seems that key f1 and f3 function is designed by Vxd or WDM.
Maybe i need to study Vxd or WDM to solve this problem.
Anyway thanks all the same.
Posted on 2004-02-12 20:18:27 by Rey
Any new idea about this question?Thank you very much!
Posted on 2004-02-23 02:13:51 by Rey
Maybe try not calling the CallNextHookEx function in the hook procedure.
Posted on 2004-02-23 02:35:30 by ENF
It does not work.The Help and Finding dialog box still appears.I really dont know how to solve it.
Posted on 2004-02-26 05:27:26 by Rey
Try using a WH_KEYBOARD_LL hook instead of WH_KEYBOARD. This will not work with win9x though.
Posted on 2004-02-26 06:17:42 by Delight
Thanx Delight,i'll try!
Posted on 2004-02-27 05:22:51 by Rey