Deleting files problem

Hi,
I’m trying to delete the following file:
C:\Windows\winsxs\wow64_microsoft-windows-ntdll_31bf3856ad364e35_6.1.7600.16385_none_bf207a3b4a3f74b8\ntdll.dll
. I changed the owner to me, and gave my user full permissions to this
file. But in my native API code I get the status - STATUS_CANNOT_DELETE,
when I call NtDelete. I’ve checked with process explorer, no application
has an open handle to this file. Is Windows Resource Protection
protecting this file?

Thanks in advance

And just why do you want to delete the file?

Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Diurpaneus
Sent: Sunday, May 09, 2010 2:32 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Deleting files problem

Hi,
I’m trying to delete the following file:
C:\Windows\winsxs\wow64_microsoft-windows-ntdll_31bf3856ad364e35_6.1.7600.16
385_none_bf207a3b4a3f74b8\ntdll.dll
. I changed the owner to me, and gave my user full permissions to this
file. But in my native API code I get the status - STATUS_CANNOT_DELETE,
when I call NtDelete. I’ve checked with process explorer, no application
has an open handle to this file. Is Windows Resource Protection
protecting this file?

Thanks in advance


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

__________ Information from ESET Smart Security, version of virus signature
database 5098 (20100509) __________

The message was checked by ESET Smart Security.

http://www.eset.com

__________ Information from ESET Smart Security, version of virus signature
database 5098 (20100509) __________

The message was checked by ESET Smart Security.

http://www.eset.com

On 5/9/2010 10:57 PM, Gary G. Little wrote:

And just why do you want to delete the file?

Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Diurpaneus
Sent: Sunday, May 09, 2010 2:32 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Deleting files problem

Hi,
I’m trying to delete the following file:
C:\Windows\winsxs\wow64_microsoft-windows-ntdll_31bf3856ad364e35_6.1.7600.16
385_none_bf207a3b4a3f74b8\ntdll.dll
. I changed the owner to me, and gave my user full permissions to this
file. But in my native API code I get the status - STATUS_CANNOT_DELETE,
when I call NtDelete. I’ve checked with process explorer, no application
has an open handle to this file. Is Windows Resource Protection
protecting this file?

Thanks in advance


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

__________ Information from ESET Smart Security, version of virus signature
database 5098 (20100509) __________

The message was checked by ESET Smart Security.

http://www.eset.com

__________ Information from ESET Smart Security, version of virus signature
database 5098 (20100509) __________

The message was checked by ESET Smart Security.

http://www.eset.com

Just trying to write an app that will delete hard to delete files. My
code stops at this file.

> has an open handle to this file. Is Windows Resource Protection

protecting this file?

There is no such thing anymore. WinSxS directory and a set of ACLs on system32 and such replaces it from Vista up.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

Then why can’t I delete this file, it is obviously not used by some
process. I’m running Windows 7 x64.

On 5/9/2010 11:24 PM, Maxim S. Shatskih wrote:

> has an open handle to this file. Is Windows Resource Protection
> protecting this file?

There is no such thing anymore. WinSxS directory and a set of ACLs on system32 and such replaces it from Vista up.