Solved

KTKbdHk.dll

Posted on 2002-04-11
5
331 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now