File time not working ?!?!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
}


it doesn't match the current date... but whats more weird is that when it goes to print the files creation time it will output a different # every time i test it even though the file time doesn't change?!?!
Topic archived. No new replies allowed.