annotate uninstall_0.9.x.bat @ 685:c13ccf5a629b

Fixed a bug in the dma routines which was causing memory corruption. In some cases when Windows gave an MDL that was longer than the buffer to be dma'd, the end of the buffer would be overwritten. The only time I am aware of this occuring is on one particular map in Call Of Duty 4.

Split out the dma routines from xenpci_pdo.c into xenpci_dma.c
author James Harper <>
date Wed Oct 14 14:46:39 2009 +1100 (2009-10-14)
parents cbd4e4ae9527
rev   line source
james@571 1 @ECHO OFF
james@571 2
james@571 3 REM stop and remove shutdownmon service
james@571 4 net stop shutdownmon
james@571 5 "%ProgramFiles%\Xen PV Drivers\ShutdownMon.exe" -u
james@571 6
james@571 7 REM remove XEN from Program Files
james@571 8 rmdir /q /s "%ProgramFiles%\Xen PV Drivers"
james@571 9
james@571 10 REM remove start menu stuff
james@571 11 ECHO "Please remove Start Menu stuff manually"
james@571 12
james@571 13 del /q "%SystemRoot%\system32\drivers\xen*"
james@571 14
james@571 15 REM delete inf and pnf files
james@571 16 FOR /F "delims=. tokens=1" %%I IN ('DIR /B "%SYSTEMROOT%\INF\OEM*.INF"') DO (
james@571 17 TYPE "%SYSTEMROOT%\INF\%%I.inf" | FIND /c /i "xen" >james
james@571 18 FOR /f %%c IN (james) DO (
james@571 19 IF /I %%c NEQ 0 (
james@571 20 DEL "%SYSTEMROOT%\INF\%%I.inf"
james@571 21 DEL "%SYSTEMROOT%\INF\%%I.pnf"
james@571 22 )
james@571 23 )
james@571 24 )
james@571 25
james@571 26 REM clean registry
james@571 27 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenConfig /f
james@571 28 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenHide /f
james@571 29 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenNet /f
james@571 30 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenPCI /f
james@571 31 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenStub /f
james@571 32 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenVbd /f
james@571 33 REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318} /v UpperFilters /f
james@571 34 REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318} /v UpperFilters /f
james@571 35 REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318} /v UpperFilters /f
james@649 36 REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E97D-E325-11CE-BFC1-08002BE10318} /v UpperFilters /f
james@649 37
james@571 38 ECHO done