|
Hi jaclaz,
to integrate diskpart.exe in my mini XP isnt an easy task.
You have to add the following files:
diskpart.exe dmadmin.exe
cabinet.dll clusapi.dll dmintf.dll dmserver.dll dmutil.dll ole32.dll oleaut32.dll osuninst.dll setupapi.dll shlwapi.dll
The Registry needs 3 parts, I tested them, they work.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID\dmadmin.exe] "AppID"="{4FB6BB00-3347-11d0-B40A-00AA005FF586}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID\{4FB6BB00-3347-11d0-B40A-00AA005FF586}] @="Logical Disk Manager Administrative Service" "LocalService"="dmadmin"
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\dmadmin] "ErrorControl"=dword:00000001 "ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\ 74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,\ 00,6d,00,61,00,64,00,6d,00,69,00,6e,00,2e,00,65,00,78,00,65,00,20,00,2f,00,\ 63,00,6f,00,6d,00,00,00 "Start"=dword:00000003 "DependOnService"=hex(7):52,00,70,00,63,00,53,00,73,00,00,00,50,00,6c,00,75,00,\ 67,00,50,00,6c,00,61,00,79,00,00,00,44,00,6d,00,53,00,65,00,72,00,76,00,65,\ 00,72,00,00,00,00,00 "Type"=dword:00000020 "Description"="Configures hard disk drives and volumes. The service only runs for configuration processes and then stops." "DisplayName"="Logical Disk Manager Administrative Service" "ObjectName"="LocalSystem"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\dmadmin\Enum] "Count"=dword:00000001 "NextInstance"=dword:00000001 "0"="Root\\LEGACY_DMADMIN\\0000"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\dmadmin\Parameters] "EnableDynamicConversionFor1394"=dword:00000000
"ServiceParameters"="/com"
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\dmserver] "DependOnService"=hex(7):52,00,70,00,63,00,53,00,73,00,00,00,50,00,6c,00,75,00,\ 67,00,50,00,6c,00,61,00,79,00,00,00,00,00 "ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\ 74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\ 00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,\ 6b,00,20,00,6e,00,65,00,74,00,73,00,76,00,63,00,73,00,00,00 "DisplayName"="Logical Disk Manager" "ErrorControl"=dword:00000001 "Type"=dword:00000020 "Start"=dword:00000002 "ObjectName"="LocalSystem" "Description"="Detects and monitors new hard disk drives and sends disk volume information to Logical Disk Manager Administrative Service for configuration. If this service is stopped, dynamic disk status and configuration information may become out of date. If this service is disabled, any services that explicitly depend on it will fail to start."
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\dmserver\Enum] "Count"=dword:00000001 "NextInstance"=dword:00000001 "0"="Root\\LEGACY_DMSERVER\\0000"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\dmserver\Parameters] "ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\ 00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\ 64,00,6d,00,73,00,65,00,72,00,76,00,65,00,72,00,2e,00,64,00,6c,00,6c,00,00,\ 00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\dmserver\Security] "Security"=hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,\ 00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\ 00,00,02,00,60,00,04,00,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,\ 05,0b,00,00,00,00,00,18,00,9d,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,\ 23,02,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,20,\ 02,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,05,12,00,00,00,01,01,\ 00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00
But you have to build a Mini XP to make diskpart work also with
dllhost.exe lsass.exe regsvr32.exe rundll32.exe services.exe svchost.exe
and their whole dependencies. This makes my Mini XP larger to 48 MB (uncompressed). Today I build such a Mini XP by hand, and diskpart.exe works with the 3 registry entries above.
Nice to hear from you Dietmar
|