Imagine an even worse written application :
fptr = GetProcAdress(hDll, "SomeVistaExport");
if(fptr)
Vista = TRUE;
I know at least one application that does it, and this is... wine tests!
Le 13/11/2010 19:41, Colin Finck a écrit :
Ged Murphy <gedmurphy(a)gmail.com> wrote:
Usermode should and does report as NT5.2.
It actually doesn't have a choice as the APIs which you use in usermode
to discover the version (GetVersionEx, VerifyVersionInfo) actually query
hardcoded values stored in the kernel.
Sure, but you don't consider the example I've given (VMware Tools
Installer).
We were already reporting ReactOS as NT 5.2 at that time, but
obviously the installer just queried the msvcrt.dll version to
determine its features. And when finding out that it's 42.4.0.0, it
consequently expected Vista features we were missing.
What I want to say is that we cannot just report ReactOS as NT 5.2
through the common version functions, but also need to ensure that the
DLLs have the same versions as their NT 5.2 counterparts.
And when this has been changed, adding APIs of newer Windows versions
(like wcsncpy_s) would hardly make any sense if we don't need them to
please some Wine-synced DLLs using newer APIs.
Colin
_______________________________________________
Ros-dev mailing list
Ros-dev(a)reactos.org
http://www.reactos.org/mailman/listinfo/ros-dev