Solved

KTKbdHk.dll

Posted on 2002-04-11
5
334 Views
Last Modified: 2010-05-18
i am using KTKbdHk.dll to hook my keyboard, this works fine on most machines but on some when i call any of the functions within that dll it doesnt return from the call for about an hour then complians that it couldnt find the dll when it is clearly in the application path.
Any ideas what could cause this?
0
Comment
Question by:crazyman
  • 2
  • 2
5 Comments
 
LVL 1

Expert Comment

by:soferstam
ID: 6934781
I assume this is COM dll
Try opening .vbp file in notepad and see where it is going to.Sometimes it has wrong references.
0
 
LVL 13

Author Comment

by:crazyman
ID: 6936267
nope it is not a COM dll, it is a standard dll, i reference it using.
Public Declare Function HookKeyboard Lib "KTKbdHk.dll" (ByVal hWnd As Long, ByVal MsgID As Long) As Long
Public Declare Function UnhookKeyboard Lib "KTKbdHk.dll" () As Long
Public Declare Function Hooked Lib "KTKbdHk.dll" () As Long
0
 
LVL 1

Expert Comment

by:soferstam
ID: 6937365
Hi,
I don't know the answer,but this guy using a different way to do something simular:
http://www.hackinthebox.org/threadview.php?&topicid=19&forumid=2
0
 
LVL 1

Accepted Solution

by:
ProgramIT earned 200 total points
ID: 6939838
The KTKbdHK dll works well in 95/98 but can cause serious problems in ME, 2000, and XP if not careful.  There is an update available for xp etc. but then it doesn't run in 98.  
I used it for awhile but had to include both versions and use OS checking to determine one to use.


0
 
LVL 13

Author Comment

by:crazyman
ID: 6941449
well this dll has caused me nothing but grief, ive found another systemhook dll written in C++ from pscode, cheers for your input guys
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question