]>
glassweightruler.freedombox.rocks Git - Ventoy.git/blob - Ventoy2Disk/Ventoy2Disk/DiskService.h
1 /******************************************************************************
4 * Copyright (c) 2021, longpanda <admin@ventoy.net>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 3 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
21 #ifndef __DISKSERVICE_H__
22 #define __DISKSERVICE_H__
24 typedef struct VDS_PARA
37 BOOL
VDS_CleanDisk(int DriveIndex
);
38 BOOL
VDS_DeleteAllPartitions(int DriveIndex
);
39 BOOL
VDS_DeleteVtoyEFIPartition(int DriveIndex
);
40 BOOL
VDS_ChangeVtoyEFIAttr(int DriveIndex
, UINT64 Attr
);
41 BOOL
VDS_CreateVtoyEFIPart(int DriveIndex
, UINT64 Offset
);
42 BOOL
VDS_ChangeVtoyEFI2ESP(int DriveIndex
, UINT64 Offset
);
43 BOOL
VDS_ChangeVtoyEFI2Basic(int DriveIndex
, UINT64 Offset
);
44 BOOL
VDS_FormatVtoyEFIPart(int DriveIndex
, UINT64 Offset
);
47 BOOL
DSPT_CleanDisk(int DriveIndex
);