flat assembler
Message board for the users of flat assembler.
Index
> Windows > comunication via IOCTL_CODE problem |
Author |
|
marcinzabrze12 11 Sep 2012, 14:22
here i try to do comunication via IOCTL_CODE with driver.
What is wrong in this code can someone explain ? 1. I register and run driver with use manager - all ok. 2. I try run program.exe - some error my Vbox crash and restart without BSOD DO NOT USE THIS CODE IT WAS CATASTROPHE
Last edited by marcinzabrze12 on 16 Sep 2012, 04:00; edited 1 time in total |
|||||||||||
11 Sep 2012, 14:22 |
|
marcinzabrze12 12 Sep 2012, 21:29
1. What it KD ?
2. Quote: invoke DbgPrint PstringZ it a stringZ to display in DbgView.exe. - may get thise same arguments like printf function. Look at thise example code - ApiScannerOld (without IOCTL ) Its hooked ZwCreateFile, ZwClose, ZwDeleteFile and display they parameters in DbgPrint.exe via "DbgPrint". i always use "DbgPrint" in kernel-drivers and iknow that other people used too. It always worked correctly in my code .
|
|||||||||||
12 Sep 2012, 21:29 |
|
revolution 12 Sep 2012, 22:51
marcinzabrze12 wrote: 1. What it KD ? Anyone developing a kernel-mode driver will find it harder to fix bugs without a good kernel-mode debugger. |
|||
12 Sep 2012, 22:51 |
|
marcinzabrze12 13 Sep 2012, 18:15
I do not want visual studio - is ther some KD without VS ?
or may someone give a example code with IOCTL comunication in FASM - I will be thankful? ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ok i done it myself. Following project have comunication in-out via IOCTL. For brightness the code i was modyfing file NT Structures.inc from DDK.INC so included this file to project and added some macrodefinition: IoGetCurrentIrpStackLocation , CTL_CODE ... every are enclosure in DDK.MACROS file. -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|||||||||||
13 Sep 2012, 18:15 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.