How to delete file from FSFD

Hi All,

I want to delete a File/Folder from my FSFD, how can I do
that? Is there any Zwxxx call for the same . I want to delete the file
from my driver entry function.

Regards

Raghwendra

============================================================================================================================

Disclaimer:

This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html externally and http://tim.techmahindra.com/Disclaimer.html internally within Tech Mahindra.

============================================================================================================================

Hi!

You can use ZwSetInformationFile with FileDispositionInformation class and
set DeleteFile in the corresponding structure to TRUE.

Regards,

Ayush Gupta

or these is also ZwDeleteFile()
or you can use ZwCreateFile()/ZwOpenFile() with option FILE_DELETE_ON_CLOSE, followed by ZwClose().

-bg

But beware of stack usage…
wrote in message news:xxxxx@ntfsd…
> or these is also ZwDeleteFile()
> or you can use ZwCreateFile()/ZwOpenFile() with option
> FILE_DELETE_ON_CLOSE, followed by ZwClose().
>
> -bg
>