Solved

KTKbdHk.dll

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

911 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

23 Experts available now in Live!

Get 1:1 Help Now