Solved

KTKbdHk.dll

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 10 start screen issues 9 61
Using "ScreenUpdating" 6 84
Protecting vb6 & .Net code Obfuscation 18 183
VBA Replace Function - What am I missing? 3 21
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

749 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