3 * Copyright (C) 2002, 2003 ReactOS Team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 * COPYRIGHT: See COPYING in the top level directory
21 * PROJECT: ReactOS text-mode setup
22 * FILE: base/setup/usetup/partlist.h
23 * PURPOSE: Partition list functions
29 // #include "../lib/utils/partlist.h"
31 typedef enum _FORMATMACHINESTATE
34 FormatSystemPartition
,
35 FormatInstallPartition
,
38 // CheckSystemPartition,
39 // CheckInstallPartition,
40 // CheckOtherPartition,
42 } FORMATMACHINESTATE
, *PFORMATMACHINESTATE
;
44 typedef struct _PARTLIST_UI
51 * NOTE that when CurrentPartition != NULL, then CurrentPartition->DiskEntry
52 * must be the same as CurrentDisk. We should however keep the two members
53 * separated as we can have a selected disk without any partition.
55 PDISKENTRY CurrentDisk
;
56 PPARTENTRY CurrentPartition
;
58 // PLIST_ENTRY FirstShown;
59 // PLIST_ENTRY LastShown;
70 } PARTLIST_UI
, *PPARTLIST_UI
;
74 GetPartTypeStringFromPartitionType(
75 IN UCHAR partitionType
,
76 OUT PCHAR strPartType
,
77 IN ULONG cchPartType
);
81 IN OUT PPARTLIST_UI ListUi
,
83 IN PPARTENTRY CurrentEntry OPTIONAL
,
90 ScrollDownPartitionList(
91 IN PPARTLIST_UI ListUi
);
94 ScrollUpPartitionList(
95 IN PPARTLIST_UI ListUi
);
99 IN PPARTLIST_UI ListUi
);