@echo off

if not defined VNGWPLATSDK set VNGWPLATSDK=C:\Program Files\Microsoft Platform SDK

call "%VNGWPLATSDK%\setenv.cmd" /XP32 /RETAIL >nul

:: see C:\Program Files\Microsoft Platform SDK\ReadMe.Htm
::    
:: see setenv.cmd and "Setting Targets" in platform SDK doc

:# Changing Target to both Win98 and WinNT/2000/XP
set APPVER=4.0
set TARGETOS=BOTH

:: also see "Using the SDK Headers" in platform SDK doc for compiler defines

:: Need to pass ROOT through to Visual Studio in Windows backslash
:: format.  $ROOT has forward slashes here, so run it through cygpath.
:: (Windows equivalent of "export WIN_NC_ROOT=`cygpath -w $ROOT`"):
for /F %%v IN ('cygpath -w %ROOT%') do call set WIN_NC_ROOT=%%v
:: (If cygpath is not available, comment out the previous line and set WIN_NC_ROOT manually)

set ROOT=%WIN_NC_ROOT%

echo ROOT == %ROOT%
