123456789101112131415161718192021222324252627
BOOL File() { SYSTEMTIME Time; GetLocalTime(&Time); SYSTEMTIME FileTime; FILETIME CreationTime; LPSTR Path = "C:\\Users\\User\\Desktop\\File.dll"; HANDLE File = Path; GetFileTime(File, &CreationTime, NULL, NULL); FileTimeToSystemTime(&CreationTime, &FileTime); if (FileTime.wDay == 25) // Which is today's date { Print(0, 1, "Yes"); } else if (FileTime.wDay > Time.wDay || FileTime.wDay < Time.wDay) { Print(0, 1, "%d", FileTime.wDay); } return TRUE; }