How delete folders and subfolders?

I’m wanting know this time, how delete a folder and your subfolders.

I already have searched on web but nothing was found about this.

Obviously in user mode this method: http://www.codeguru.com/cpp/w-p/files/folderdirectorymaintenance/article.php/c8999/Deleting-a-Directory-Along-with-SubFolders.htm

can solve, but how can be in kernel mode?

Someone have some idea?

Thanks in advance.

You need to walk the directory tree and delete all files and directories
individually.

Pete


Kernel Drivers
Windows File System and Device Driver Consulting
www.KernelDrivers.com
866.263.9295

------ Original Message ------
From: xxxxx@hotmail.com
To: “Windows File Systems Devs Interest List”
Sent: 1/17/2017 6:04:28 PM
Subject: [ntfsd] How delete folders and subfolders?

>I’m wanting know this time, how delete a folder and your subfolders.
>
>I already have searched on web but nothing was found about this.
>
>Obviously in user mode this method:
>http://www.codeguru.com/cpp/w-p/files/folderdirectorymaintenance/article.php/c8999/Deleting-a-Directory-Along-with-SubFolders.htm
>
>can solve, but how can be in kernel mode?
>
>Someone have some idea?
>
>Thanks in advance.
>
>—
>NTFSD is sponsored by OSR
>
>
>MONTHLY seminars on crash dump analysis, WDF, Windows internals and
>software drivers!
>Details at http:
>
>To unsubscribe, visit the List Server section of OSR Online at
>http:</http:></http:>