File Sharing Problem

From: Bojidar Markov (boshko_at_nospam.yahoo.com)
Date: 11/28/03


Date: 28 Nov 2003 01:32:03 -0700


When I try to open an existing file with CreateFile if the file is locked, GetLastError returns "The process cannot access the file because it is being used by another process."
In this case I can't do much.
My questions is, how Windows can use the locked files?

For example if I open an Interbase database it is locked and I can't get its handle to read the file's date, but Windows opens it without a problem (when I use CopyFile API it's working, because I don't have to pass the file's handle).

I hope you will help me.

Thanks in advance,
Bojidar Markov



Relevant Pages

  • Re: Default Folder for Explore
    ... Carroll Rinehart wrote: ... > Windows opens up to when I open Explore from right-clicking on the ... mine always opens to the Start Menu folder ...
    (microsoft.public.win2000.general)
  • Stange IE6 Disappearing Problem
    ... When I click on any shortcut to open IE, the windows opens for less than a ... numerous shortcuts on my desktop pointing to various URLs, ... which only opens to the static default page. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • RE: XP SP-3 Wont Shutdown
    ... Also boot up normally and then don't open anything. ... Once Win XP has settle ... load after Windows opens. ...
    (microsoft.public.windowsxp.general)
  • Problems opening links
    ... When I click on a link, for example, in an email message, windows opens a dialog ... box with the title "Locate Link Browser", but it opens the link in my browser as ... it give me an error message "Windows could not find http://*******";, ...
    (microsoft.public.windowsxp.general)
  • Default Folder for Explore
    ... Windows opens up to when I open Explore from right-clicking on the ... mine always opens to the Start Menu folder ... It's just extra work to always have to change to the folder I ...
    (microsoft.public.win2000.general)