[USETUP] Improve the formatter & check-disk state machine. CORE-7749
[reactos.git] / base / setup / usetup / partlist.h
1 /*
2 * ReactOS kernel
3 * Copyright (C) 2002, 2003 ReactOS Team
4 *
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.
9 *
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.
14 *
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.
18 */
19 /*
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
24 * PROGRAMMER:
25 */
26
27 #pragma once
28
29 // #include "../lib/utils/partlist.h"
30
31 typedef enum _FORMATMACHINESTATE
32 {
33 Start,
34 FormatSystemPartition,
35 FormatInstallPartition,
36 FormatOtherPartition,
37 FormatDone,
38 // CheckSystemPartition,
39 // CheckInstallPartition,
40 // CheckOtherPartition,
41 // CheckDone
42 } FORMATMACHINESTATE, *PFORMATMACHINESTATE;
43
44 typedef struct _PARTLIST_UI
45 {
46 PPARTLIST List;
47
48 // PLIST_ENTRY FirstShown;
49 // PLIST_ENTRY LastShown;
50
51 SHORT Left;
52 SHORT Top;
53 SHORT Right;
54 SHORT Bottom;
55
56 SHORT Line;
57 SHORT Offset;
58
59 // BOOL Redraw;
60 } PARTLIST_UI, *PPARTLIST_UI;
61
62
63 VOID
64 GetPartTypeStringFromPartitionType(
65 IN UCHAR partitionType,
66 OUT PCHAR strPartType,
67 IN ULONG cchPartType);
68
69 VOID
70 InitPartitionListUi(
71 IN OUT PPARTLIST_UI ListUi,
72 IN PPARTLIST List,
73 IN SHORT Left,
74 IN SHORT Top,
75 IN SHORT Right,
76 IN SHORT Bottom);
77
78 VOID
79 ScrollDownPartitionList(
80 IN PPARTLIST_UI ListUi);
81
82 VOID
83 ScrollUpPartitionList(
84 IN PPARTLIST_UI ListUi);
85
86 VOID
87 DrawPartitionList(
88 IN PPARTLIST_UI ListUi);
89
90 /* EOF */