SetFileInformationByHandle never works

M

mkaufma@gmail.com

Hi, I'm not sure this is the correct newsgroup for my question, so
please tell me if I'm wrong to send it here.

I creates a small program that creates a file handle on an existing
file using CreateFile function.
After creating the handle the program tries to set FileRenameInfo or
FileDispositionInfo for the file but the function always fails with
ACCESS_DENIED. I tried many combinations of CreateFile parameters, but
none worked for me yet.
Are there specific parameters to use for creating the handle when
using SetFileInformationByHandle?
 
Back
Top Bottom