diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-10-04 04:12:34 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-10-04 04:12:34 +0000 |
commit | d4725c127c54354823501ac734fd8e29ea0d006f (patch) | |
tree | 37d137684b405f144dfe462f767ce1d678187431 /version_info.c | |
parent | 038cbce33531a0961413c17c605b5d8f0c554f46 (diff) |
Grr. Without the right version of the SDK, we can't even compile code
to *use* the shiny new features.
svn path=/trunk/; revision=16102
Diffstat (limited to 'version_info.c')
-rw-r--r-- | version_info.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/version_info.c b/version_info.c index b80f43db5b..e53acc30b3 100644 --- a/version_info.c +++ b/version_info.c @@ -230,6 +230,12 @@ get_runtime_version_info(GString *str) * of that is left as an exercise to the reader - who should * check any copyright information about code samples on MSDN * before cutting and pasting into Ethereal. + * + * They should also note that you need an OSVERSIONINFOEX structure + * to get some of that information, and that not only is that + * structure not supported on older versions of Windows, you might + * not even be able to compile code that *uses* that structure with + * older versions of the SDK. */ info.dwOSVersionInfoSize = sizeof info; if (!GetVersionEx(&info)) { @@ -303,14 +309,7 @@ get_runtime_version_info(GString *str) break; case 2: - /* - * The 64-bit version of XP is, I guess, - * built on the NT 5.2 code base. - */ - if (info.wProductType == VER_NT_WORKSTATION) - g_string_sprintfa(str, "Windows XP"); - else - g_string_sprintfa(str, "Windows Server 2003"); + g_string_sprintfa(str, "Windows Server 2003"); break; default: @@ -321,10 +320,7 @@ get_runtime_version_info(GString *str) break; case 6: - if (info.wProductType == VER_NT_WORKSTATION) - g_string_sprintfa(str, "Windows Vista"); - else - g_string_sprintfa(str, "Windows Server \"Longhorn\""); + g_string_sprintfa(str, "Windows Vista"); break; default: |