Tech Support > Microsoft Windows > Drivers > Re: Copying files using device handles
Re: Copying files using device handles
Posted by Maxim S. Shatskih on September 9th, 2003


Wrong approach. LOCK does not invalidate the cached metadata.
You need to call LOCK then DISMOUNT, and then copy the file sectorwise (good
luck with NTFS with this). Then UNLOCK, then close the handle. Then the next
new CreateFile to the volume will re-mount it back.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com


"andrew" <andrew.venz@eds.com> wrote in message
news:52d301c37677$79ab2170$a401280a@phx.gbl...



Similar Posts