CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2014
    Posts
    61

    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
    7,822

    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. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. 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/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  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
  •  





Click Here to Expand Forum to Full Width

Featured