The information in this article applies to:
SYMPTOMSThe LoadPerfCounterTextString Win32 API fails with return code 87 (ERROR_INVALID_PARAMETER) when you use it as prescribed in the Platform SDK documentation. CAUSEThe first parameter needs more information in addition to the .ini filename to qualify parameter validation. RESOLUTIONTo work around this problem, pre-pend characters and a space to the filename specification for the first parameter. Then LoadPerfCounterTextString will qualify the first parameter, but ignore the pre-pended characters. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATION
The documentation states that the first parameter, lpCommandLine, is the
name of your initialization file. Although this is a reasonable design it
does not work this way.
The filename myperf.ini specifies a hypothetical performance counter .ini
file.
REFERENCES
For more information about LoadPerfCounterTextString see:
Additional query words:
Keywords : kberrmsg kbAPI kbKernBase kbNTOS400 kbWinOS2000 kbPerfMon kbDSupport kbGrpKernBase |
Last Reviewed: January 10, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |