I wrote a server recovery application using WHS_Recovery_DLL.dll from WHS OPK.
Two server image files partition.table and volume.image were prepared readily.
The application calls the APIs in the WHS_Recovery_DLL.dll by the following order:
PFN_WipeDisks
PFN_CleanPrimaryDisk
PFN_RestorePrimaryVolume
I've tested the above procedures several times on the same board and SATA HDD, and then found that PFN_CleanPrimaryDisk would sometimes succeed but sometimes return Error Code PartWriteError (6). The strange thing is that it did not always fail or always succeed.
Could you please give me some hint about this problem?
The OPK User's Guide I referenced is Version 3 (published on May 2008).
The version of WHS_Image.exe and WHS_Recovery_DLL.dll is 6.0.1788.0.
Sylvia Lin