The timeGetDevCaps function queries the timer device to determine its resolution.
MMRESULT timeGetDevCaps(
LPTIMECAPS ptc,
UINT cbtc
);
Returns TIMERR_NOERROR if successful or TIMERR_STRUCT if it fails to return the timer device capabilities.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mmsystem.h.
Import Library: Use winmm.lib.
Multimedia Timers Overview, Multimedia Timer Functions, TIMECAPS