This issue has been resolved in Windows 10 version 1703.
- Retrieve text strings for counter names from the HKEY_PERFORMANCE_NLSTEXT registry key:
RegQueryValueEx(HKEY_PERFORMANCE_NLSTEXT, L"Counter", NULL, NULL, (LPBYTE)pBufferCounter, &dwBufferSize);
- Retrieve text strings for the explain text from the HKEY_PERFORMANCE_NLSTEXT registry key:
RegQueryValueEx(HKEY_PERFORMANCE_NLSTEXT, L"Help", NULL, NULL, (LPBYTE)pBufferHelp, &dwBufferSize);
- Retrieve the last index used from the following registry:
RegOpenKeyEx( HKEY_LOCAL_MACHINE,L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Perflib", 0,KEY_READ, &hkey );RegQueryValueEx(hkey, L"Last Help", NULL, 0, (LPBYTE)&dwEntries,&dwSize);
- Use pBufferCounter and pBufferHelp to locate the desired explain text. After locating the index number for the desired counter name from pBufferCounter, increase that index value by one to determine the index of the associated explain text within pBufferHelp. If you need to associate counter names and explain text with counter objects, you can retrieve the object information from the HKEY_PERFORMANCE_DATA registry key:
RegQueryValueEx(HKEY_PERFORMANCE_DATA, L"Global", NULL, NULL, pBuffer, &dwSize);
For more information about the registry functions, go to Using the Registry Functions to Consume Counter Data.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.