QueryPerformanceFrequency (Windows CE 5.0)
This function retrieves the frequency of the high-resolution performance counter if one is provided by the OEM.
BOOL QueryPerformanceFrequency(LARGE_INTEGER* lpFrequency );
[out] Pointer to a variable that the function sets, in counts per second, to the current performance-counter frequency.
If the installed hardware does not support a high-resolution performance counter, the value passed back through this pointer can be zero.
If the function succeeds, it returns TRUE to indicate that a performance frequency value was successfully filled in.
If the function fails, it returns FALSE.
If the hardware does not support a high frequency counter, QueryPerformanceFrequency will return 1000 because the API defaults to a milliseconds GetTickCount implementation.
OS Versions: Windows CE 2.0 and later.
Link Library: Coredll.lib.
Send Feedback on this topic to the authors