Microsoft KB Archive/821141

= FIX: You Can Rename or Delete Files That Were Opened in Exclusive Sharing Mode =

Article ID: 821141

Article Last Modified on 5/27/2005

-

APPLIES TO


 * Microsoft Windows CE .NET 4.1

-



SYMPTOMS
Exclusive sharing permissions are designed to prevent other processes from opening a file.

If a file that is on a FAT-based storage media is opened with exclusive sharing permissions, other processes can still rename, move, or delete the open file.



Hotfix Information
A supported software update is now available from Microsoft as Windows CE 4.1 Core OS QFE 821141. To resolve this problem immediately, click the following article number for information about obtaining Windows CE Platform Builder and core operating system software updates:

837392 How to locate core operating system fixes for Microsoft Windows CE Platform Builder products

Prerequisites
No prerequisites are required.

Restart Requirement
You do not have to restart your computer after you apply this hotfix.

Hotfix Replacement Information
This hotfix does not replace any other hotfixes.

File Information
The English version of this package has the file attributes (or later) that are listed in the following table.  Date        Time   Version      Size    File name --  27-May-2003  23:37  4.1.3.527   961,128  Wincepb41-030527-kb821141-armv4.exe 27-May-2003 23:37  4.1.3.527   961,128  Wincepb41-030527-kb821141-armv4i.exe 27-May-2003 23:38  4.1.3.527   965,224  Wincepb41-030527-kb821141-armv4t.exe 27-May-2003 23:37  4.1.3.527   916,072  Wincepb41-030527-kb821141-mips16.exe 27-May-2003 23:38  4.1.3.527   985,704  Wincepb41-030527-kb821141-mipsii.exe 27-May-2003 23:38  4.1.3.527   985,704  Wincepb41-030527-kb821141-mipsii_fp.exe 27-May-2003 23:38  4.1.3.527   993,896  Wincepb41-030527-kb821141-mipsiv.exe 27-May-2003 23:38  4.1.3.527   993,896  Wincepb41-030527-kb821141-mipsiv_fp.exe 27-May-2003 23:37  4.1.3.527   932,456  Wincepb41-030527-kb821141-sh3.exe 27-May-2003 23:37  4.1.3.527   932,456  Wincepb41-030527-kb821141-sh4.exe 27-May-2003 23:37  4.1.3.527   879,208  Wincepb41-030527-kb821141-x86.exe The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.  Date        Time     Size     File name ---

Path: Public\Common\Oak\Lib\Armv4\Debug 16-May-2003 01:00    726,398  Fatfsd.lib 16-May-2003 01:00     77,824  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Armv4\Retail 16-May-2003 01:00    401,984  Fatfsd.lib 16-May-2003 01:00     77,824  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Armv4i\Debug 16-May-2003 01:00    727,204  Fatfsd.lib 16-May-2003 01:00     77,824  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Armv4i\Retail 16-May-2003 01:00    402,440  Fatfsd.lib 16-May-2003 01:00     77,824  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Armv4t\Debug 16-May-2003 00:59    691,728  Fatfsd.lib 16-May-2003 00:59     77,824  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Armv4t\Retail 16-May-2003 00:59    403,324  Fatfsd.lib 16-May-2003 00:59     77,824  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Mips16\Debug 16-May-2003 01:01    630,210  Fatfsd.lib 16-May-2003 01:01     86,016  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Mips16\Retail 16-May-2003 01:01    345,638  Fatfsd.lib 16-May-2003 01:01     86,016  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Mipsii\Debug 16-May-2003 01:01    741,106  Fatfsd.lib 16-May-2003 01:01     86,016  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Mipsii\Retail 16-May-2003 01:00    408,902  Fatfsd.lib 16-May-2003 01:00     86,016  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Mipsii_fp\Debug 16-May-2003 01:01    741,192  Fatfsd.lib 16-May-2003 01:01     86,016  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Mipsii_fp\Retail 16-May-2003 01:01    409,046  Fatfsd.lib 16-May-2003 01:01     86,016  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Mipsiv\Debug 16-May-2003 01:03    750,636  Fatfsd.lib 16-May-2003 01:03     86,016  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Mipsiv\Retail 16-May-2003 01:02    412,404  Fatfsd.lib 16-May-2003 01:02     86,016  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Mipsiv_fp\Debug 16-May-2003 01:02    750,722  Fatfsd.lib 16-May-2003 01:02     86,016  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Mipsiv_fp\Retail 16-May-2003 01:02    412,546  Fatfsd.lib 16-May-2003 01:02     86,016  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Sh3\Debug 16-May-2003 01:02    636,952  Fatfsd.lib 16-May-2003 01:02     86,016  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Sh3\Retail 16-May-2003 01:01    371,760  Fatfsd.lib 16-May-2003 01:01     86,016  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Sh4\Debug 16-May-2003 01:02    636,600  Fatfsd.lib 16-May-2003 01:02     77,824  Fatfsd.pdb

Path: Public\Common\Oak\Lib\Sh4\Retail 16-May-2003 01:02    370,992  Fatfsd.lib 16-May-2003 01:02     77,824  Fatfsd.pdb

Path: Public\Common\Oak\Lib\X86\Debug 16-May-2003 00:59    620,578  Fatfsd.lib 16-May-2003 00:59     86,016  Fatfsd.pdb

Path: Public\Common\Oak\Lib\X86\Retail 16-May-2003 00:59    327,478  Fatfsd.lib 16-May-2003 00:59     77,824  Fatfsd.pdb





STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
To open a file in exclusive sharing mode, you must set the dwShareMode parameter of CreateFile to 0, as shown in the following sample code : hFile = CreateFile(                       TEXT(&quot;\\Storage Card\\test.txt&quot;),                        GENERIC_READ | GENERIC_WRITE,                        0, /* The object cannot be shared */                        NULL,                        OPEN_EXISTING,                        FILE_ATTRIBUTE_NORMAL,                        NULL);

Keywords: kbbug kbfix kbqfe KB821141

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.