Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Global Keyboard Hook example?

Status
Not open for further replies.

rlev

Programmer
Feb 13, 2010
8
US
Hi Guys,

I have a program that start a external win32 app using CreateProcess API.
This external app is controlled by keyboard command....what i would like to do is disable the keyboard in this external app.

I have search online for answers and I found that a global keyboard hook could do this.

I have found a example on : but throw me a access violation when I run it.
I work with Codegear BC++ 2009 under Windows Vista.

Also I found this thread:


I tried to compile the example but I think the code is incomplete.

Can somebody post a example of a global keyboard hook in C++ Builder?

Thanks in advanced
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top