I open a file in kernel mode with ZwCreateFile while impersonating a user
with PsImpersonateClient. After the file is opened, I do PsRevertToSelf. Now
I wonder whether I need to impersonate while I call ZwReadFile and
ZwWriteFile? If I do, will this affect performance? If I don’t, will say the
volume quotas be applied appropriately?
Thanks.
> I wonder whether I need to impersonate while I call ZwReadFile and
ZwWriteFile?
No need in this.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com