Come on dude, your code has
FILETIME ft = fd.ftLastWriteTime;
SYSTEMTIME sysTime;
FileTimeToSystemTime(&ft, &sysTime);
already and you're asking where to put time checks?
Google / Bing / Yahoo Search for SYSTEMTIME, FILETIME and you'll find tons of articles on how to do arithmetic on those values. Hint,
#define ONEDAY ((__int64)(__int64)10000000*(__int64)(60*60*24))
#define ONEHOUR ((__int64)(__int64)10000000*(__int64)(60*60))
#define ONEMINUTE ((__int64)(__int64)10000000*(__int64)(60))
will help you with the math and what the units are from your research into how files record times.