Solved

Getting  error when trying to use CreateFile

Posted on 2002-03-27
3
259 Views
Last Modified: 2013-12-03
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
Comment
Question by:GAZZA
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 50 total points
ID: 6899739
Try using 'FILE_SHARE_DELETE' as the 'dwShareMode' argument to 'CreateFile()'...
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to run a powershell script in Dell KACE (K2000) systems deployment appliance? 2 345
What is MicroStrategy.NET? 2 90
SSRS troubles 4 104
Developing a front end to SPLUNK 1 106
This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question