The function GetTickCount() (defined in WinBase.h) returns the no. of milliseconds elapsed since the computer was started.
The returned value is DWORD. So the above call may malfunction if the system has been up continuously for 49.7 days (as DWORD is only 32 bit). You can use the function GetTickCount64(), which returns ULONGLONG, to overcome this problem.