Click here to Skip to main content
       

C / C++ / MFC

 
QuestionLock a file PinmemberIain Wiseman3-Nov-12 16:46 
This looked easy but it wasn't
 
I want to
 
1/ Test if I have rights to delete a file
2/ lock it
3/ read it
4/ delete it
 
This is all in one process
 
Gave up on 1/ but tried to use CreateFile to lock it and found xerces-c was not able to access the file for reading in the same process.
 
Any pointers (no pun intended). Not .net just C++/Win32
 
Thanks
Iain
AnswerRe: Lock a file PinmvpRichard MacCutchan3-Nov-12 21:25 
GeneralRe: Lock a file PinmemberIain Wiseman4-Nov-12 9:22 
GeneralRe: Lock a file PinmemberIain Wiseman4-Nov-12 10:58 
GeneralRe: Lock a file PinmvpRichard MacCutchan4-Nov-12 21:06 
GeneralRe: Lock a file PinmemberIain Wiseman4-Nov-12 22:17 
GeneralRe: Lock a file PinmvpRichard MacCutchan5-Nov-12 3:05 
GeneralRe: Lock a file PinmemberIain Wiseman5-Nov-12 8:58 
GeneralRe: Lock a file Pinmember SandipG 5-Nov-12 21:53 
GeneralRe: Lock a file PinmvpRichard MacCutchan5-Nov-12 22:10 
GeneralRe: Lock a file PinmemberIain Wiseman6-Nov-12 19:29 
GeneralMessage Removed PinmemberSarath C4-Nov-12 21:42 
GeneralRe: Lock a file PinmvpRichard MacCutchan5-Nov-12 3:00 
AnswerRe: Lock a file PinmemberSarath C5-Nov-12 22:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 16 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid