Unlike the IFS kit, the Win2000 DDK is not backwards compatible. It’s
not just a matter of the headers, but also of the libraries. If you
link a driver with the libs from the Windows 2000 DDK, then it won’t
load on NT 4 because the loader can’t resolve all the Win2000-only
functions and variables.
The IFS kit header does include _WIN32_WINNT conditionals, and the kit
does not include any libraries that might restrict the compiled binary
to one platform or another. It just inherits the platform targeted by
the DDK it is installed into.
I installed the two DDKs to different directories, created environment
variables pointing to each, and use the environment vars - $(varname) -
in the include and lib paths in platform-specific configurations of my
VC++ projects. Yes, 4 configurations per project. But you should be
used to checking ‘all configurations’ before making most project
settings changes if you’ve been maintaining debug and release configs.
Dave Cox
Hewlett-Packard Co.
HPSO/SSMO (Santa Barbara)
https://ecardfile.com/id/Dave+Cox
-----Original Message-----
From: Dennis Calkins [mailto:xxxxx@Ncr.com]
Sent: Thursday, June 22, 2000 10:12 PM
To: File Systems Developers
Subject: [ntfsd] Windows 2000 DDK
Hi,
Is the Windows 2000 DDK supposed to be backwards compatible with NT 4.0?
I would like to be able to build my driver for both 4.0
and 2K and I would like to only have one set of header files installed on my
workstation.
In my driver code I can preface stuff with
#if (WINVER >= 500)
W2K specific code
#else
NT 4.0 specific code
#endif
For looking at the NTDDK.H that comes with the W2K there isn’t a single
#if (WINVER >= 500), like around MM_HIGHEST_USER_ADDRESS which changed from
a constant to a pointer.
Has any else ran into this double build problem?
If so how did you solve it?
The only solution I can come up with is to install the files in completely
separate directories and have 2 ( or 4 if you include
debug vs. release ) separate configurations in my project files.
You are currently subscribed to ntfsd as: david_cox2@hp.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)