The DDK_TARGET_OS environment variable specifies the version of Windows for which your binaries will be built.
This is always defined in the DDK build environments. In the Windows 2000 build environments it is defined as Win2k. In the Windows XP build environments it is defined as WinXP. In the Windows Server 2003 build environments it is defined as WinNET.
You can use $(DDK_TARGET_OS) in a sources file to test what environment you are building on. An example of this appears in the sample located in the src\general\cancel\sys directory of the DDK.
You should not change this environment variable. Changing this variable in a build environment window to a different value will not let you build products for a different version of Windows.