How delete folders and subfolders using a kernel driver (.sys)?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: How delete folders and subfolders using a kernel driver (.sys)?

  1. #1
    Join Date
    Apr 2014
    Posts
    55

    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.

  2. #2
    2kaud's Avatar
    2kaud is online now Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    5,790

    Re: How delete folders and subfolders using a kernel driver (.sys)?

    "functions to kernel drivers are differents of functions used in a software "user mode" ".
    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.

    Have fun!
    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. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++17 Compiler: Microsoft VS2017 (15.4.1)

  3. #3

    Re: How delete folders and subfolders using a kernel driver (.sys)?

    you already saw ( or have ) some code that is able to delete folders and your subfolders via kernel driver?

    if yes, you can provide here please? i already searched in several sites on web and nothing was found about this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


On-Demand Webinars (sponsored)