Tests and window versions

Alexandre Julliard julliard at winehq.org
Wed Jun 8 14:07:00 CDT 2005

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

> I've just finished another test for NtQuerySystemInformatio. In this
> test I test the structure SYSTEM_PROCESS_INFORMATION. The structure is
> however different for NT4.
> If I add an osversion (> 4) check I can check the structure for
> W2K/WinXP and W2K3 and skip this structure-check for NT4 (for now).
> Wine however defaults to Win98 unless I put in the config:
> [AppDefaults\\ntdll_test.exe.so\\Version]
> "Windows" = "winxp"
> Is there another approach or will this test be accepted as is ?

Ideally you should determine which structure to check by observing the
function behavior, not by checking the Windows version. For instance
if the structures have different sizes you can use the returned size
to determine if you got the NT4 structure or the win2k one.

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list