The RegQueryValueEx function returns a very large incorrect value for the "Avg. Disk sec/Transfer" performance counter in Windows Server 2008 R2 or in Windows 7

Article translations Article translations
Article ID: 2470949 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario:
  • You have a computer that is running Windows Server 2008 R2 or Windows 7.
  • You query for the value of the "Avg. Disk sec/Transfer" performance counter by using the RegQueryValueEx function.
In this scenario, a very large, incorrect value is returned by the function.

Note
  • This issue does not occur if you collect the value of the same performance counter by using the performance monitor utility.
  • This issue may occur if any application or any service uses the sample code that is described in the following MSDN article:
    Retrieving Counter Data
    For example, you use System Center Operations Manager 2007 to monitor the health status of a Windows Server 2008 R2-based computer. You may receive wrong alerts for troubleshooting because of this issue.

CAUSE

This behavior occurs because of an issue in the volume manager driver (Volmgr.sys).

Some applications or services close the handle to HKEY_PERFORMANCE_DATA every time that the RegQueryValueEx function is called. Then, the disk counter is enabled or disabled intermittently by the kernel provider, and time stamps of some I/O request packets (IRPs) are not recorded when the disk counter is disabled. Therefore, not-valid data that does not have a time stamp is calculated and returned by the function.

Note In Windows Server 2008 R2 and in Windows 7, the disk counter in kernel provider can be dynamically enabled or disabled. If the handle to HKEY_PERFORMANCE_DATA is closed, the kernel provider disables I/O performance trace.

RESOLUTION

Hotfix information

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 that is 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 website:
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 be running one of the following operating systems:
  • Windows 7
  • Windows 7 with Service Pack 1 (SP1)
  • Windows Server 2008 R2
  • Windows Server 2008 R2 with Service Pack 1 (SP1)

Registry information

You do not have to make any changes to the registry to use this hotfix.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The global version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.
Windows 7 and Windows Server 2008 R2 file information notes
  • The files that apply to a specific product, milestone (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
    VersionProductMilestoneService branch
    6.1.760 0.20xxxWindows 7 and Windows Server 2008 R2RTMLDR
    6.1.760 1.17xxxWindows 7 and Windows Server 2008 R2SP1GDR
    6.1.760 1.21xxxWindows 7 and Windows Server 2008 R2SP1LDR
  • GDR service branches contain only those fixes that are widely released to address widespread, very important issues. LDR service branches contain hotfixes in addition to widely released fixes.
  • The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately in the "Additional file information for Windows Server 2008 R2 and for Windows 7" section. MUM and MANIFEST files, and the associated security catalog (.cat) files, are critical to maintaining the state of the updated components. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.
For all supported x86-based versions of Windows 7
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Agp440.sys6.1.7600.1638553,31214-Jul-200901:26x86
Amdagp.sys6.1.7600.1638553,31214-Jul-200901:26x86
Isapnp.sys6.1.7600.1638546,65614-Jul-200901:20x86
Msisadrv.sys6.1.7600.1638513,88814-Jul-200901:20x86
Mssmbios.sys6.1.7600.1638528,24014-Jul-200901:20x86
Nv_agp.sys6.1.7600.16385105,02414-Jul-200901:20x86
Pci.sys6.1.7600.20861153,98418-Dec-201005:35x86
Sisagp.sys6.1.7600.1638552,30414-Jul-200901:19x86
Streamci.dll6.1.7600.1638522,09614-Jul-200901:19x86
Swenum.sys6.1.7600.1638512,24014-Jul-200901:19Not applicable
Termdd.sys6.1.7600.2086151,58418-Dec-201005:35x86
Uliagpkx.sys6.1.7600.1638557,42414-Jul-200901:19x86
Vdrvroot.sys6.1.7600.1638532,83214-Jul-200901:19x86
Viaagp.sys6.1.7600.1638553,32814-Jul-200901:19x86
Volmgr.sys6.1.7600.2086153,12018-Dec-201005:35x86
Agp440.sys6.1.7600.1638553,31214-Jul-200901:26x86
Amdagp.sys6.1.7600.1638553,31214-Jul-200901:26x86
Isapnp.sys6.1.7600.1638546,65614-Jul-200901:20x86
Msisadrv.sys6.1.7600.1638513,88814-Jul-200901:20x86
Mssmbios.sys6.1.7600.1638528,24014-Jul-200901:20x86
Nv_agp.sys6.1.7600.16385105,02414-Jul-200901:20x86
Pci.sys6.1.7601.21624153,98418-Dec-201008:05x86
Sisagp.sys6.1.7600.1638552,30414-Jul-200901:19x86
Streamci.dll6.1.7600.1638522,09614-Jul-200901:19x86
Swenum.sys6.1.7600.1638512,24014-Jul-200901:19Not applicable
Termdd.sys6.1.7601.1751453,12020-Nov-201012:30x86
Uliagpkx.sys6.1.7600.1638557,42414-Jul-200901:19x86
Vdrvroot.sys6.1.7600.1638532,83214-Jul-200901:19x86
Viaagp.sys6.1.7600.1638553,32814-Jul-200901:19x86
Volmgr.sys6.1.7601.2162453,12018-Dec-201008:06x86
For all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Agp440.sys6.1.7600.1638561,00814-Jul-200901:52x64
Isapnp.sys6.1.7600.1638520,54414-Jul-200901:48x64
Msisadrv.sys6.1.7600.1638515,42414-Jul-200901:48x64
Mssmbios.sys6.1.7600.1638532,32014-Jul-200901:48x64
Nv_agp.sys6.1.7600.16385122,96014-Jul-200901:48x64
Pci.sys6.1.7600.20861184,70418-Dec-201006:13x64
Streamci.dll6.1.7600.1638524,14414-Jul-200901:45x64
Swenum.sys6.1.7600.1638512,49614-Jul-200901:45x64
Termdd.sys6.1.7600.2086162,33618-Dec-201006:13x64
Uliagpkx.sys6.1.7600.1638564,59214-Jul-200901:45x64
Vdrvroot.sys6.1.7600.1638536,43214-Jul-200901:45x64
Volmgr.sys6.1.7600.2086171,55218-Dec-201006:13x64
Agp440.sys6.1.7600.1638561,00814-Jul-200901:52x64
Isapnp.sys6.1.7600.1638520,54414-Jul-200901:48x64
Msisadrv.sys6.1.7600.1638515,42414-Jul-200901:48x64
Mssmbios.sys6.1.7600.1638532,32014-Jul-200901:48x64
Nv_agp.sys6.1.7600.16385122,96014-Jul-200901:48x64
Pci.sys6.1.7601.21624184,70418-Dec-201008:56x64
Streamci.dll6.1.7600.1638524,14414-Jul-200901:45x64
Swenum.sys6.1.7600.1638512,49614-Jul-200901:45x64
Termdd.sys6.1.7601.1751463,36020-Nov-201013:33x64
Uliagpkx.sys6.1.7600.1638564,59214-Jul-200901:45x64
Vdrvroot.sys6.1.7600.1638536,43214-Jul-200901:45x64
Volmgr.sys6.1.7601.2162470,52818-Dec-201008:56x64
For all supported IA-64-based versions of Windows Server 2008 R2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Agp460.sys6.1.7600.16385137,21613-Jul-200923:45IA-64
Isapnp.sys6.1.7600.1638534,38414-Jul-200901:58IA-64
Msisadrv.sys6.1.7600.1638522,59214-Jul-200901:58IA-64
Mssmbios.sys6.1.7600.1638558,43214-Jul-200901:58IA-64
Pci.sys6.1.7600.20861455,55218-Dec-201005:23IA-64
Streamci.dll6.1.7600.1638543,07214-Jul-200901:56IA-64
Swenum.sys6.1.7600.1638516,19214-Jul-200901:56Not applicable
Termdd.sys6.1.7600.20861160,12818-Dec-201005:23IA-64
Vdrvroot.sys6.1.7600.1638566,11214-Jul-200901:56IA-64
Volmgr.sys6.1.7600.20861164,22418-Dec-201005:23IA-64
Agp460.sys6.1.7600.16385137,21613-Jul-200923:45IA-64
Isapnp.sys6.1.7600.1638534,38414-Jul-200901:58IA-64
Msisadrv.sys6.1.7600.1638522,59214-Jul-200901:58IA-64
Mssmbios.sys6.1.7600.1638558,43214-Jul-200901:58IA-64
Pci.sys6.1.7601.17514456,06420-Nov-201010:33IA-64
Streamci.dll6.1.7600.1638543,07214-Jul-200901:56IA-64
Swenum.sys6.1.7600.1638516,19214-Jul-200901:56Not applicable
Termdd.sys6.1.7601.17514162,68820-Nov-201010:33IA-64
Vdrvroot.sys6.1.7600.1638566,11214-Jul-200901:56IA-64
Volmgr.sys6.1.7601.21624164,22418-Dec-201009:41IA-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 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
For more information about RegQueryValueEx function, visit the following Microsoft webpage:
RegQueryValueEx Function

Additional file information

Additional file information for Windows 7 and for Windows Server 2008 R2

Additional files for all supported x86-based versions of Windows 7
Collapse this tableExpand this table
File nameUpdate.mum
File versionNot applicable
File size2,331
Date (UTC)21-Dec-2010
Time (UTC)01:43
PlatformNot applicable
File nameX86_machine.inf_31bf3856ad364e35_6.1.7600.20861_none_ba84867239156613.manifest
File versionNot applicable
File size9,456
Date (UTC)21-Dec-2010
Time (UTC)01:46
PlatformNot applicable
File nameX86_machine.inf_31bf3856ad364e35_6.1.7601.21624_none_bc9924063618ae40.manifest
File versionNot applicable
File size9,456
Date (UTC)21-Dec-2010
Time (UTC)01:46
PlatformNot applicable
Additional files for all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
Collapse this tableExpand this table
File nameAmd64_machine.inf_31bf3856ad364e35_6.1.7600.20861_none_16a321f5f172d749.manifest
File versionNot applicable
File size7,894
Date (UTC)21-Dec-2010
Time (UTC)01:49
PlatformNot applicable
File nameAmd64_machine.inf_31bf3856ad364e35_6.1.7601.21624_none_18b7bf89ee761f76.manifest
File versionNot applicable
File size7,894
Date (UTC)21-Dec-2010
Time (UTC)01:49
PlatformNot applicable
File nameUpdate.mum
File versionNot applicable
File size2,347
Date (UTC)21-Dec-2010
Time (UTC)01:43
PlatformNot applicable
Additional files for all supported IA-64-based versions of Windows Server 2008 R2
Collapse this tableExpand this table
File nameIa64_machine.inf_31bf3856ad364e35_6.1.7600.20861_none_ba862a6839136f0f.manifest
File versionNot applicable
File size6,844
Date (UTC)21-Dec-2010
Time (UTC)01:44
PlatformNot applicable
File nameIa64_machine.inf_31bf3856ad364e35_6.1.7601.21624_none_bc9ac7fc3616b73c.manifest
File versionNot applicable
File size6,844
Date (UTC)21-Dec-2010
Time (UTC)01:44
PlatformNot applicable
File nameUpdate.mum
File versionNot applicable
File size1,933
Date (UTC)21-Dec-2010
Time (UTC)01:43
PlatformNot applicable

Properties

Article ID: 2470949 - Last Review: May 23, 2011 - Revision: 2.0
APPLIES TO
  • Windows 7 Enterprise
  • Windows 7 Home Basic
  • Windows 7 Home Premium
  • Windows 7 Professional
  • Windows 7 Starter
  • Windows 7 Ultimate
  • Windows Server 2008 R2 Datacenter
  • Windows Server 2008 R2 Enterprise
  • Windows Server 2008 R2 for Itanium-Based Systems
  • Windows Server 2008 R2 Foundation
  • Windows Server 2008 R2 Standard
  • Windows Web Server 2008 R2
Keywords: 
kbautohotfix kbqfe kbHotfixServer kbfix kbsurveynew kbexpertiseinter KB2470949

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com