News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

global hook procedure throws run-time error message

Started by madMASM, January 29, 2006, 09:50:38 PM

Previous topic - Next topic

madMASM

my current project, which involves mapping out a MUD (Multi User Domain), uses a global keyboard hook to obtain the directions. it does this by storing the character(s) pressed before the carriage return was used.  However, when i first started my program up, it threw a run-time error --similar to the ones you can send to a manufacturer when something is wrong with their program-- and i don't know what to do about it.

I know the program used InstallHook (same dunction Icezelon used to install his mouse hook in his tutorial on hooks), but once my program uses it, it sends the error.

i believe the error occurse somewhere within WM_CHAR(++++) or WM_KEYHOOK(----), which is where i use the keyhook dll (below)

[code removed by admin]

hutch--

I think we have made it clear enough times that the forum will not allow topics of this type.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

sluggy

Quote from: madMASM on January 29, 2006, 09:50:38 PM
my current project, which involves mapping out a MUD (Multi User Domain),
There are API functions to enumerate a domain.

Quote from: madMASM on January 29, 2006, 09:50:38 PM
uses a global keyboard hook to obtain the directions.
This bit makes no sense at all. You do not need a global keyboard hook to instruct an app what to do.

Quote from: madMASM on January 29, 2006, 09:50:38 PMit does this by storing the character(s) pressed before the carriage return was used. 
Right - so you are trying to capture logons and passwords. Nice try - if you want help you will have to come up with something better than that garbage.