SYSTEMTIME systime;
GetLocalTime(&systime);
union
{
FILETIME ft;
ULONGLONG ut;
}t;
SystemTimeToFileTime(&systime,&t.ft);
t.ut-=UInt32x32To64(60*60*24, 10000000);
FileTimeToSystemTime(&t.ft,&systime);
SYSTEMTIME systime;
GetLocalTime(&systime);
union
{
FILETIME ft;
ULONGLONG ut;
}t;
SystemTimeToFileTime(&systime,&t.ft);
t.ut-=UInt32x32To64(60*60*24, 10000000);
FileTimeToSystemTime(&t.ft,&systime);