The PdhSetCounterScaleFactor function sets the scale factor that is applied to the calculated value of the specified counter when you request the formatted counter value. If the PDH_FMT_NOSCALE flag is set, then this scale factor is ignored.
PDH_STATUS PdhSetCounterScaleFactor(
IN HCOUNTER hCounter, // handle of the counter
IN LONG lFactor // power of ten used to multiply value
);
If the function succeeds, it returns ERROR_SUCCESS.
If the function fails, the return value is an error status defined in pdhmsg.h. The following are possible error values:
Performance Data Helper Overview, Performance Data Functions, , PdhCalculateCounterFromRawValue, PdhComputeCounterStatistics, PdhGetFormattedCounterValue