.
static extern UInt32 PdhLookupPerfNameByIndex(string szMachineName, uint dwNameIndex, StringBuilder szNameBuffer, ref uint pcchNameBufferSize);
.
Declare Function PdhLookupPerfNameByIndex Lib "pdh.dll" (TODO) As TODO
.
iRet = PdhLookupPerfNameByIndex(null, iProcessorQueueLength, buffer, ref bufSize);
.