ULONG NameLen;\r
ULONGLONG Offset;\r
CHAR DriveLetter;\r
+ DWORD ClusterSize;\r
}VDS_PARA;\r
\r
//DISK API\r
BOOL DISK_ChangeVtoyEFI2ESP(int DriveIndex, UINT64 Offset);\r
BOOL DISK_ChangeVtoyEFI2Basic(int DriveIndex, UINT64 Offset);\r
BOOL DISK_ShrinkVolume(int DriveIndex, const char* VolumeGuid, CHAR DriveLetter, UINT64 OldBytes, UINT64 ReduceBytes);\r
-\r
+BOOL DISK_FormatVolume(char DriveLetter, int fs, UINT64 VolumeSize);\r
\r
\r
//VDS com\r
BOOL VDS_ChangeVtoyEFI2Basic(int DriveIndex, UINT64 Offset);\r
BOOL VDS_ShrinkVolume(int DriveIndex, const char* VolumeGuid, CHAR DriveLetter, UINT64 OldBytes, UINT64 ReduceBytes);\r
BOOL VDS_IsLastAvaliable(void);\r
-\r
+BOOL VDS_FormatVolume(char DriveLetter, int fs, DWORD ClusterSize);\r
\r
//diskpart.exe\r
BOOL DSPT_CleanDisk(int DriveIndex);\r
+BOOL DSPT_FormatVolume(char DriveLetter, int fs, DWORD ClusterSize);\r
+\r
+BOOL CMD_FormatVolume(char DriveLetter, int fs, DWORD ClusterSize);\r
\r
//powershell.exe\r
BOOL PSHELL_CleanDisk(int DriveIndex);\r
BOOL PSHELL_ChangeVtoyEFI2ESP(int DriveIndex, UINT64 Offset);\r
BOOL PSHELL_ChangeVtoyEFI2Basic(int DriveIndex, UINT64 Offset);\r
BOOL PSHELL_ShrinkVolume(int DriveIndex, const char* VolumeGuid, CHAR DriveLetter, UINT64 OldBytes, UINT64 ReduceBytes);\r
+BOOL PSHELL_FormatVolume(char DriveLetter, int fs, DWORD ClusterSize);\r
+\r
+const CHAR* DISK_GetWindowsDir(void);\r
\r
//\r
// Internel define\r
//\r
\r
\r
+typedef BOOL(*FormatVolume_PF)(char DriveLetter, int fs, DWORD ClusterSize);\r
+\r
+typedef struct FmtFunc\r
+{\r
+ const char* name;\r
+ FormatVolume_PF formatFunc;\r
+}FmtFunc;\r
+\r
+#define FMT_DEF(func) { #func, func }\r
\r
\r
#endif\r