On Dec 13, 9:46 pm, Ben Appleton <
apple...@google.com> wrote:
> Confirmed, that is a bug we intend to fix.
Any chance my issue might be addressed ?
I am using documented function calls:
#include <windows.h>
void main(void)
{
HANDLE hTok;
TOKEN_PRIVILEGES tp;
LUID luid;
SYSTEMTIME SysT;
DWORD step;
DWORD tick;
BOOL bool;
OpenProcessToken(GetCurrentProcess(),TOKEN_ADJUST_PRIVILEGES
+TOKEN_QUERY,&hTok);
LookupPrivilegeValue(NULL,"SeSystemTimePrivilege",&luid);
tp.PrivilegeCount=1;
tp.Privileges[0].Luid=luid;
tp.Privileges[0].Attributes=SE_PRIVILEGE_ENABLED;
AdjustTokenPrivileges(hTok,FALSE,&tp,0,NULL,NULL);
GetSystemTimeAdjustment(&step,&tick,&bool);
SetSystemTimeAdjustment(0,0);
GetSystemTime(&SysT);
SysT.wYear=2010;
SysT.wMonth=1;
SysT.wDayOfWeek=1;
SysT.wDay=1;
SysT.wHour=0;
SysT.wMinute=0;
SysT.wSecond=0;
SysT.wMilliseconds=0;
SetSystemTime(&SysT);
AdjustTokenPrivileges(hTok,TRUE,&tp,0,NULL,NULL);
}
to deal with an erratic time of day clock. The interval timer still
ticks but the time of day clock is frozen.