What happens to GetProcessTimes() When a breakpoint is put in one of the threads of the process

  • Thread starter Thread starter Harsha_MR
  • Start date Start date
H

Harsha_MR

Guest
What happens to current_time in the below code When a breakpoint is put in visual studio for one of the threads of the process

GetProcessTimes(GetCurrentProcess(), &ft1, &ft2, &ft3, &start_time);
start_time_int.HighPart = start_time.dwHighDateTime;
start_time_int.LowPart = start_time.dwLowDateTime;


while (true)
{
GetProcessTimes(GetCurrentProcess(), &ft1, &ft2, &ft3, &current_time);
current_time_int.HighPart = current_time.dwHighDateTime;
current_time_int.LowPart = current_time.dwLowDateTime;
if (((current_time_int.QuadPart - start_time_int.QuadPart) / FT_TO_MS) >= 15)
break;


Sleep(1);
}


Continue reading...
 
Back
Top