flat assembler
Message board for the users of flat assembler.
Index
> Windows > hook keyboard ISR |
Author |
|
Apolo 07 Apr 2017, 08:30
Aaarrggghhh!
Why nobody answer? |
|||
07 Apr 2017, 08:30 |
|
zhak 07 Apr 2017, 15:25
Your devicename path is wrong -- no escaping needed.
Code: devicename db '\Device\KeyboardClass0',0 I'm not 100% sure, but devices may not accept all file attributes. Maybe windows coders can shed more light on that. What is the value of [raw] you pass to the function? Anyway, try the following code, should open the device. At least it opens it for me on Win7 x64 Code: include 'include\win64ax.inc' .code start: invoke DefineDosDevice, 1, filename1, devicename lea rcx, [filename2] invoke CreateFile, rcx, GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0 mov [hKbd], rax invoke ExitProcess, 0 .end start .data devicename db '\Device\KeyboardClass0',0 filename1 db 'kbd',0 filename2 db '\\.\kbd',0 hKbd dq ? |
|||
07 Apr 2017, 15:25 |
|
Apolo 07 Apr 2017, 16:13
Zach, thanks for answer me, the first problem solved but now I CreateFile get: ERROR_ACCESS_DENIED when I try to open keyboard device. Why it happen???
|
|||
07 Apr 2017, 16:13 |
|
Apolo 10 Apr 2017, 10:57
Now i need the number of
Code: IOCTL_INTERNAL_I8042_HOOK_KEYBOARD |
|||
10 Apr 2017, 10:57 |
|
revolution 10 Apr 2017, 11:44
Apolo wrote: Now i need the number of |
|||
10 Apr 2017, 11:44 |
|
system error 10 Apr 2017, 13:40
revolution wrote: Visit my website. It has all the answers you are looking for. Click on the "WWW" icon in this post. Your website provides the best answers! Congratulations from the bottom of my heart. |
|||
10 Apr 2017, 13:40 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.