[NtQuerySystemInformation #7] SystemTimeOfDayInformation (RESEND)

Alexandre Julliard julliard at winehq.org
Sun Jun 12 04:09:25 CDT 2005

Paul Vriens <Paul.Vriens at xs4all.nl> writes:

> just found at that the behavior of NT and W2K/WinXP differ a lot for
> SystemTimeOfDayInformation.
> The struct for NT is 32 Bytes compared to 48 for the others. Apart from
> that returncodes etc.. are totally different.
> The included test explains (some of) the differences. 
> The test now also caters for all the above mentioned versions, as does
> nt.c (that means setting the wine version to nt4 produces the correct
> results).
> nt.c now has a hard coded value for the size of the struct for NT (32).

You should not do that kind of version-dependent code unless there is
an app that requires it. Otherwise just implement the XP behavior,
which should be backwards compatible anyway.

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list