• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 266
  • Last Modified:

Getting error when trying to use CreateFile

Why can't I use createFile with flags = FILE_FLAG_DELETE_ON_CLOSE, it always returns error. I do not have admin privilages, just basic user on Win2K.  Is this a flag that can't be used when you are logged onto a system as a normal user and not admin?

I am assuming this is normal behavior because under admin privs it works fine. Can someone point me to a link where I can get some info on this?

Thanks.
0
GAZZA
Asked:
GAZZA
1 Solution
 
jkrCommented:
Try using 'FILE_SHARE_DELETE' as the 'dwShareMode' argument to 'CreateFile()'...
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now