January 3rd, 2017, 10:07 PM
How delete folders and subfolders using a kernel driver (.sys)?
I had done a "Hello Word" example for test the funcionality of a kernel driver and is working very fine.
My environment of development is:
* Computer ( VirtualBox ): Windows 7 Ultimate x86
* Visual Studio 2010 Professional (installed in VBox)
* Visual DDK 7.1 (installed in VBox)
* WinDDK 7.1 (installed in VBox)
But my main goal with this kernel driver ( in this moment ) is delete folders and yours subfolders.
I saw in this link a function that seems work, but already saw in some place on web someone saying something like: "functions to kernel drivers are differents of functions used in a software "user mode" ".
So, i want know what i can use to create a code for function that i'm needing?
Thanks by any suggestion.
January 4th, 2017, 02:47 AM
Re: How delete folders and subfolders using a kernel driver (.sys)?
Correct. That article relates to code for user space. Kernel API's are different. Eg. To delete a file use ZwDeleteFile(). See https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx. This link also shows other zw functions on the left and has links to the Driver Support Routines.
"functions to kernel drivers are differents of functions used in a software "user mode" ".
All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on.
C, C++ Compiler: Microsoft VS2017
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!