Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

An ERROR_ACCESS_DENIED error is returned in Windows Server 2003, in Windows Vista, or in Windows Server 2008 when you call the DeviceIoControl function together with the FSCTL_LOCK_VOLUME control code


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You open or create a file by calling a function and by setting the FILE_FLAG_DELETE_ON_CLOSE flag on a computer that is running Windows Server 2003, Windows Vista, or Windows Server 2003.
  • You create a file-mapping object for the file, and then you create a mapped view object for the file mapping object.
  • You close the file before the mapped view is unmapped.
  • You try to lock the volume that stores the file by calling the DeviceIoControl function together with a FSCTL_LOCK_VOLUME control code.
In this scenario, the DeviceIoControl function fails, and an ERROR_ACCESS_DENIED error is returned.

This problem affects applications that use the DeviceIoControl function to lock a volume. For example, some backup applications may crash or may raise exceptions unexpectedly.

↑ Back to the top


Cause

This problem occurs because the memory manager does not force the mapped view object to close when the file that is mapped in memory is deleted. Therefore, the file object does not close successfully, and it remains open on the volume. This behavior prevents the volume from being locked.

↑ Back to the top


Resolution

Hotfix information for Windows Server 2003

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must have Windows Server 2003 Service Pack 2 installed on the computer. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
889100 How to obtain the latest service pack for Windows Server 2003

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) 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 item in Control Panel.
Windows Server 2003 with Service Pack 2, x86-based versions
File nameFile versionFile sizeDateTimePlatform
Ntfs.sys5.2.3790.4563592,89631-Jul-200913:25x86
Windows Server 2003 with Service Pack 2, Itanium-based versions
File nameFile versionFile sizeDateTimePlatform
Ntfs.sys5.2.3790.45631,891,32831-Jul-200914:18IA-64
Windows Server 2003 with Service Pack 2, x64-based versions
File nameFile versionFile sizeDateTimePlatform
Ntfs.sys5.2.3790.45631,046,01631-Jul-200914:22x64
Windows XP Professional x64 Edition with Service Pack 2
File nameFile versionFile sizeDateTimePlatform
Ntfs.sys5.2.3790.45631,046,01631-Jul-200914:22x64

Hotfix information for Windows Vista and for Windows Server 2008

Important Windows Vista and Windows Server 2008 hotfixes are included in the same packages. However, only one of these products may be listed on the �Hotfix Request� page. To request the hotfix package that applies to both Windows Vista and Windows Server 2008, just select the product that is listed on the page.

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

This hotfix requires the following prerequisites:
  • Windows Vista Service Pack 2
  • Windows Server 2008 Service Pack 2

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The global version of this hotfix has the file attributes (or later file attributes) that are listed in the following table.

Windows Vista and Windows Server 2008 file information notes

  • The files that apply to a specific product, SR_Level (RTM, SPn), and service branch (LDR, GDR) can be identified by examining the file version numbers as shown in the following table.
    VersionProductSR_LevelService branch
    6.0.6000.16xxxWindows VistaRTMGDR
    6.0.6000.20xxxWindows VistaRTMLDR
    6.0.6001.18xxxWindows Vista and Windows Server 2008SP1GDR
    6.0.6001.22xxxWindows Vista and Windows Server 2008SP1LDR
    6.0.6002.18xxxWindows Vista and Windows Server 2008SP2GDR
    6.0.6002.22xxxWindows Vista and Windows Server 2008SP2LDR
  • Service Pack 1 is integrated into the original release of Windows Server 2008.
  • The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately. The MUM and the MANIFEST files, and the associated security catalog (.cat) files, are critical to maintaining the state of the updated component. The security catalog files (attributes not listed) are signed with a Microsoft digital signature.
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 item in Control Panel.
For all supported x86-based versions of Windows Server 2008 and of Windows Vista
File nameFile versionFile sizeDateTimePlatform
Ntfs.sys6.0.6002.222001,081,91214-Aug-200916:34x86
For all supported x64-based versions of Windows Server 2008 and of Windows Vista
File nameFile versionFile sizeDateTimePlatform
Ntfs.sys6.0.6002.222001,508,42414-Aug-200916:32x64
For all supported Itanium-based versions of Windows Server 2008
File nameFile versionFile sizeDateTimePlatform
Ntfs.sys6.0.6002.222003,279,43214-Aug-200916:38IA-64

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

For more information about the FILE_FLAG_DELETE_ON_CLOSE flag, visit the following Microsoft Developer Network Web site:For more information about the FSCTL_LOCK_VOLUME control code, visit the following Microsoft Developer Network Web site:For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

↑ Back to the top


Additional file information for Windows Vista and Windows Server 2008

Additional files for all supported x86-based versions of Windows Server 2008 and Windows Vista

File nameFile versionFile sizeDateTimePlatform
Package_for_kb974127_client_2~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,69315-Aug-200904:20Not Applicable
Package_for_kb974127_client~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,43015-Aug-200904:20Not Applicable
Package_for_kb974127_sc_1~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,68915-Aug-200904:20Not Applicable
Package_for_kb974127_sc~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,42215-Aug-200904:20Not Applicable
Package_for_kb974127_server_1~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,69315-Aug-200904:20Not Applicable
Package_for_kb974127_server~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,43015-Aug-200904:20Not Applicable
X86_microsoft-windows-ntfs_31bf3856ad364e35_6.0.6002.22200_none_a8e14008332f831d.manifestNot Applicable16,26514-Aug-200917:37Not Applicable

Additional files for all supported x64-based versions of Windows Server 2008 and Windows Vista

File nameFile versionFile sizeDateTimePlatform
Amd64_microsoft-windows-ntfs_31bf3856ad364e35_6.0.6002.22200_none_04ffdb8beb8cf453.manifestNot Applicable16,52514-Aug-200917:31Not Applicable
Package_for_kb974127_client_2~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,70515-Aug-200904:20Not Applicable
Package_for_kb974127_client~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,43815-Aug-200904:20Not Applicable
Package_for_kb974127_sc_1~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,70115-Aug-200904:20Not Applicable
Package_for_kb974127_sc~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,43015-Aug-200904:20Not Applicable
Package_for_kb974127_server_1~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,70515-Aug-200904:20Not Applicable
Package_for_kb974127_server~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,43815-Aug-200904:20Not Applicable

Additional files for all supported Itanium-based versions of Windows Server 2008

File nameFile versionFile sizeDateTimePlatform
Ia64_microsoft-windows-ntfs_31bf3856ad364e35_6.0.6002.22200_none_a8e2e3fe332d8c19.manifestNot Applicable16,51714-Aug-200917:22Not Applicable
Package_for_kb974127_sc_1~31bf3856ad364e35~ia64~~6.0.1.0.mumNot Applicable1,52915-Aug-200904:20Not Applicable
Package_for_kb974127_sc~31bf3856ad364e35~ia64~~6.0.1.0.mumNot Applicable1,42615-Aug-200904:20Not Applicable
Package_for_kb974127_server_1~31bf3856ad364e35~ia64~~6.0.1.0.mumNot Applicable1,53315-Aug-200904:20Not Applicable
Package_for_kb974127_server~31bf3856ad364e35~ia64~~6.0.1.0.mumNot Applicable1,43415-Aug-200904:20Not Applicable

↑ Back to the top


Keywords: kbautohotfix, kbexpertiseinter, kbsurveynew, kbbug, kbfix, kbqfe, KB974127

↑ Back to the top

Article Info
Article ID : 974127
Revision : 2
Created on : 10/7/2011
Published on : 10/7/2011
Exists online : False
Views : 382