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



The information in this article applies to:

  • Microsoft Win32 Application Programming Interface (API), when used with:
    • the operating system: Microsoft Windows 2000

This article was previously published under Q274853

SYMPTOMS

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.

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
   --------------------------------------------------
   10/03/00    03:13p  5.0.2195.2408 149,776 Pdh.dll
				

STATUS

Microsoft has confirmed that this is a problem in Microsoft Windows 2000. 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

The Unicode version of the PdhExpandWildCardPathW function works as expected on Windows 2000.

REFERENCES

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.

Modification Type:MinorLast Reviewed:9/26/2005
Keywords:kbHotfixServer kbQFE kbAPI kbBug kbfix kbKernBase kbPerfMon kbWin2000PreSP2Fix KB274853