FIX: PdhExpandWildCardPath() ANSI Version May Fail on Windows 2000

This article was previously published under Q274853
This article has been archived. It is offered "as is" and will no longer be updated.
The ANSI version of the PdhExpandWildCardPath function may fail with a random error code on a computer that is running Windows 2000. Only the ANSI version, PdhExpandWildCardPathA, exhibits this behavior.
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 theMicrosoft 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   --------------------------------------------------   10/03/00    03:13p  5.0.2195.2408 149,776 Pdh.dll				

Microsoft has confirmed that this is a problem in Microsoft Windows 2000. This problem was first corrected in Windows 2000 Service Pack 2.
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
The Unicode version of the PdhExpandWildCardPathW function works as expected on Windows 2000.
For detailed information about retrieving the counter paths by using the PDH functions, refer to the Performance Monitoring topic in Microsoft Platform SDK or the Microsoft Developer Network (MSDN) documentation under Base Services.
pdh dll api hot fix hotfix

Article ID: 274853 - Last Review: 02/28/2014 00:33:35 - Revision: 4.2

  • Microsoft Win32 Application Programming Interface
  • kbnosurvey kbarchive kbhotfixserver kbqfe kbapi kbbug kbfix kbkernbase kbperfmon kbwin2000presp2fix KB274853