At line 970-971 in the source code (of day 24), it says
UINT DesiredSchedulerMS = 1;
bool32 SleepIsGranular = (timeBeginPeriod(DesiredSchedulerMS) == TIMERR_NOERROR);
According to the MSDN documentation for the timeBeginPeriod call (
http://msdn.microsoft.com/en-us/l...esktop/dd757624%28v=vs.85%29.aspx):
"You must match each call to timeBeginPeriod with a call to timeEndPeriod, specifying the same minimum resolution in both calls. An application can make multiple timeBeginPeriod calls as long as each call is matched with a call to timeEndPeriod."
However, I cannot see that timeEndPeriod is called anywhere in the source?