You can use the timeGetDevCaps function to determine the minimum and maximum timer-event periods provided by the timer services. These values vary across computers and can vary depending on the current Windows mode. The timeGetDevCaps function has the following syntax:
WORD timeGetDevCaps(lpCaps, wSize)
The lpCaps parameter is a far pointer to a TIMECAPS structure. The second parameter, wSize, specifies the size of the TIMECAPS structure. The TIMECAPS structure has the following format:
typedef struct timecaps_tag {
WORD wPeriodMin;
WORD wPeriodMax;
} TIMECAPS;
The two fields in this structure specify, in milliseconds, the minimum and maximum period (and resolution) supported.