Microsoft Knowledge Base Email Alertz

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

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

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

Article ID: 974127 - View products that this article applies to.

On This Page

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.

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.

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:
http://support.microsoft.com/contactus/?ws=support
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
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Ntfs.sys5.2.3790.4563592,89631-Jul-200913:25x86
Windows Server 2003 with Service Pack 2, Itanium-based versions
Collapse this tableExpand this table
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
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Ntfs.sys5.2.3790.45631,046,01631-Jul-200914:22x64
Windows XP Professional x64 Edition with Service Pack 2
Collapse this tableExpand this table
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:
http://support.microsoft.com/contactus/?ws=support
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.
    Collapse this tableExpand this 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
Collapse this tableExpand this table
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
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Ntfs.sys6.0.6002.222001,508,42414-Aug-200916:32x64
For all supported Itanium-based versions of Windows Server 2008
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Ntfs.sys6.0.6002.222003,279,43214-Aug-200916:38IA-64

STATUS

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

MORE INFORMATION

For more information about the FILE_FLAG_DELETE_ON_CLOSE flag, visit the following Microsoft Developer Network Web site:
http://msdn.microsoft.com/en-us/library/aa363858(VS.85).aspx
For more information about the FSCTL_LOCK_VOLUME control code, visit the following Microsoft Developer Network Web site:
http://msdn.microsoft.com/en-us/library/aa364575(VS.85).aspx
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

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

Collapse this tableExpand this table
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

Collapse this tableExpand this table
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

Collapse this tableExpand this table
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

Properties

Article ID: 974127 - Last Review: October 7, 2011 - Revision: 2.0
APPLIES TO
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Web Edition
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • Microsoft Windows Server 2003, Standard x64 Edition
  • Microsoft Windows Server 2003, Enterprise x64 Edition
  • Microsoft Windows Server 2003, Datacenter x64 Edition
  • Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems
  • Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems
  • Microsoft Windows XP Professional x64 Edition
  • Windows Vista Starter
  • Windows Vista Ultimate
  • Windows Vista Home Premium
  • Windows Vista Home Basic
  • Windows Vista Enterprise
  • Windows Vista Business
  • Windows Vista Business 64-bit Edition
  • Windows Vista Ultimate 64-bit Edition
  • Windows Vista Home Premium 64-bit Edition
  • Windows Vista Home Basic 64-bit Edition
  • Windows Vista Enterprise 64-bit Edition
  • Windows Server 2008 Standard
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Datacenter
  • Windows Server 2008 Datacenter without Hyper-V
  • Windows Server 2008 Enterprise without Hyper-V
  • Windows Server 2008 for Itanium-Based Systems
  • Windows Server 2008 Standard without Hyper-V
  • Windows Web Server 2008
Keywords: 
kbautohotfix kbexpertiseinter kbsurveynew kbbug kbfix kbqfe KB974127
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate