@echo off
if not "%MSSDK%" == "" goto EnvIsSet
set MSSDK=\MSSDK
:EnvIsSet

if "%1" == "makediffs" goto makediffs

xcopy %MSSDK%\INCLUDE\COMMCTRL.H
xcopy %MSSDK%\INCLUDE\COMMDLG.H
xcopy %MSSDK%\INCLUDE\DDEML.H
xcopy %MSSDK%\INCLUDE\IMM.H
xcopy %MSSDK%\INCLUDE\MMSYSTEM.H
xcopy %MSSDK%\INCLUDE\MSWSOCK.H
xcopy %MSSDK%\INCLUDE\NB30.H
xcopy %MSSDK%\INCLUDE\PRSHT.H
xcopy %MSSDK%\INCLUDE\RICHEDIT.H
xcopy %MSSDK%\INCLUDE\RPCASYNC.H
xcopy %MSSDK%\INCLUDE\RPCDCE.H
xcopy %MSSDK%\INCLUDE\RPCDCEP.H
xcopy %MSSDK%\INCLUDE\SHELLAPI.H
xcopy %MSSDK%\INCLUDE\WINBASE.H
xcopy %MSSDK%\INCLUDE\WINCON.H
xcopy %MSSDK%\INCLUDE\WINDEF.H
xcopy %MSSDK%\INCLUDE\WINDOWS.H
xcopy %MSSDK%\INCLUDE\WINGDI.H
xcopy %MSSDK%\INCLUDE\WINNETWK.H
xcopy %MSSDK%\INCLUDE\WINNLS.H
xcopy %MSSDK%\INCLUDE\WINNT.H
xcopy %MSSDK%\INCLUDE\WINPERF.H
xcopy %MSSDK%\INCLUDE\WINSOCK.H
xcopy %MSSDK%\INCLUDE\WINSOCK2.H
xcopy %MSSDK%\INCLUDE\WINSVC.H
xcopy %MSSDK%\INCLUDE\WINUSER.H
xcopy %MSSDK%\INCLUDE\WTYPES.H

PATCH.EXE < COMMCTRL.DIF
PATCH.EXE < COMMDLG.DIF
PATCH.EXE < DDEML.DIF
PATCH.EXE < IMM.DIF
PATCH.EXE < MMSYSTEM.DIF
PATCH.EXE < MSWSOCK.DIF
PATCH.EXE < NB30.DIF
PATCH.EXE < PRSHT.DIF
PATCH.EXE < RICHEDIT.DIF
PATCH.EXE < RPCASYNC.DIF
PATCH.EXE < RPCDCE.DIF
PATCH.EXE < RPCDCEP.DIF
PATCH.EXE < SHELLAPI.DIF
PATCH.EXE < WINBASE.DIF
PATCH.EXE < WINCON.DIF
PATCH.EXE < WINDEF.DIF
PATCH.EXE < WINDOWS.DIF
PATCH.EXE < WINGDI.DIF
PATCH.EXE < WINNETWK.DIF
PATCH.EXE < WINNLS.DIF
PATCH.EXE < WINNT.DIF
PATCH.EXE < WINPERF.DIF
PATCH.EXE < WINSOCK.DIF
PATCH.EXE < WINSOCK2.DIF
PATCH.EXE < WINSVC.DIF
PATCH.EXE < WINUSER.DIF
PATCH.EXE < WTYPES.DIF
goto end

:makediffs
echo on
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\COMMCTRL.H COMMCTRL.H > COMMCTRL.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\COMMDLG.H  COMMDLG.H  > COMMDLG.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\DDEML.H	  DDEML.H    > DDEML.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\IMM.H	  IMM.H      > IMM.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\MMSYSTEM.H MMSYSTEM.H > MMSYSTEM.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\MSWSOCK.H  MSWSOCK.H  > MSWSOCK.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\NB30.H	  NB30.H     > NB30.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\PRSHT.H	  PRSHT.H    > PRSHT.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\RICHEDIT.H RICHEDIT.H > RICHEDIT.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\RPCASYNC.H RPCASYNC.H > RPCASYNC.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\RPCDCE.H   RPCDCE.H   > RPCDCE.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\RPCDCEP.H  RPCDCEP.H  > RPCDCEP.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\SHELLAPI.H SHELLAPI.H > SHELLAPI.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\WINBASE.H  WINBASE.H  > WINBASE.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\WINCON.H   WINCON.H   > WINCON.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\WINDEF.H   WINDEF.H   > WINDEF.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\WINDOWS.H  WINDOWS.H  > WINDOWS.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\WINGDI.H   WINGDI.H   > WINGDI.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\WINNETWK.H WINNETWK.H > WINNETWK.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\WINNLS.H   WINNLS.H   > WINNLS.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\WINNT.H	  WINNT.H    > WINNT.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\WINPERF.H  WINPERF.H  > WINPERF.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\WINSOCK.H  WINSOCK.H  > WINSOCK.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\WINSOCK2.H WINSOCK2.H > WINSOCK2.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\WINSVC.H   WINSVC.H   > WINSVC.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\WINUSER.H  WINUSER.H  > WINUSER.DIF
diff -c3 --ignore-space-change %MSSDK%\INCLUDE\WTYPES.H   WTYPES.H   > WTYPES.DIF
@echo off
goto end

:end
