Microsoft KB Archive/260234

= Windows NT 4.0 Pdh.dll PdhExpandCounterPath API Is Incorrect When Used on Windows 2000 =

Article ID: 260234

Article Last Modified on 1/27/2007

-

APPLIES TO


 * Microsoft Windows 2000 Service Pack 1
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Service Pack 1

-



This article was previously published under Q260234



SYMPTOMS
When the PdhExpandCounterPath API (ANSI or UNICODE version) is called by using the redistributable Pdh.dll file in Microsoft Windows NT 4.0 (4.0.1314.1) on Windows 2000-based computers, the following output is generated:

\PhysicalDisk/0 C:)\Current Disk Queue Length

\PhysicalDisk/_Total)\Current Disk Queue Length

IMPORTANT: Note that there is a '\' character instead of a ')' character. The same is true for Process, LogicalDisk objects.

When the PdhExpandCounterPathA API is called by using the %SystemRoot%\system32\Pdh.dll file on a Windows 2000-based computer, no output is generated.

When the PdhExpandCounterPathW API (UNICODE version) is called by using the %SystemRoot%\system32\Pdh.dll file on a Windows 2000-based computer, the API does not work and generates a C0000BBD.



CAUSE
This problem can occur because of incorrect coding in the PdhExpandCounterPath API.



RESOLUTION
To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack

The English version of this fix should have the following file attributes or later:

  Date        Time    Version        Size     File name  Platform ---  06/09/2000  04:22p  5.0.2195.2096  149,264  Pdh.dll    Intel



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 2.



MORE INFORMATION
For additional information about how to install Windows 2000 and Windows 2000 hotfixes at the same time, click the article number below to view the article in the Microsoft Knowledge Base:

249149 Installing Microsoft Windows 2000 and Windows 2000 Hotfixes

Keywords: kbbug kbfix kbwin2000presp2fix kbqfe kbenv kbhotfixserver KB260234

-

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

© Microsoft Corporation. All rights reserved.