ReactOS
0.4.15-dev-1618-g9c8ed68
partlist.h
Go to the documentation of this file.
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
/*
49
* Selected partition.
50
*
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.
54
*/
55
PDISKENTRY
CurrentDisk
;
56
PPARTENTRY
CurrentPartition
;
57
58
// PLIST_ENTRY FirstShown;
59
// PLIST_ENTRY LastShown;
60
61
SHORT
Left
;
62
SHORT
Top
;
63
SHORT
Right
;
64
SHORT
Bottom
;
65
66
SHORT
Line
;
67
SHORT
Offset
;
68
69
// BOOL Redraw;
70
}
PARTLIST_UI
, *
PPARTLIST_UI
;
71
72
73
VOID
74
GetPartTypeStringFromPartitionType
(
75
IN
UCHAR
partitionType,
76
OUT
PCHAR
strPartType,
77
IN
ULONG
cchPartType);
78
79
VOID
80
InitPartitionListUi
(
81
IN
OUT
PPARTLIST_UI
ListUi,
82
IN
PPARTLIST
List
,
83
IN
PPARTENTRY
CurrentEntry
OPTIONAL
,
84
IN
SHORT
Left,
85
IN
SHORT
Top
,
86
IN
SHORT
Right,
87
IN
SHORT
Bottom
);
88
89
VOID
90
ScrollDownPartitionList
(
91
IN
PPARTLIST_UI
ListUi);
92
93
VOID
94
ScrollUpPartitionList
(
95
IN
PPARTLIST_UI
ListUi);
96
97
VOID
98
DrawPartitionList
(
99
IN
PPARTLIST_UI
ListUi);
100
101
/* EOF */
DrawPartitionList
VOID DrawPartitionList(IN PPARTLIST_UI ListUi)
Definition:
partlist.c:427
PCHAR
signed char * PCHAR
Definition:
retypes.h:7
_PARTLIST_UI::Left
SHORT Left
Definition:
partlist.h:61
IN
#define IN
Definition:
typedefs.h:39
_PARTLIST
Definition:
partlist.h:164
_PARTENTRY
Definition:
partlist.h:53
FORMATMACHINESTATE
enum _FORMATMACHINESTATE FORMATMACHINESTATE
_DISKENTRY
Definition:
partlist.h:93
ScrollDownPartitionList
VOID ScrollDownPartitionList(IN PPARTLIST_UI ListUi)
Definition:
partlist.c:674
SHORT
short SHORT
Definition:
pedump.c:59
PPARTLIST_UI
struct _PARTLIST_UI * PPARTLIST_UI
_PARTLIST_UI::Line
SHORT Line
Definition:
partlist.h:66
_PARTLIST_UI::List
PPARTLIST List
Definition:
partlist.h:46
ScrollUpPartitionList
VOID ScrollUpPartitionList(IN PPARTLIST_UI ListUi)
Definition:
partlist.c:687
Start
Definition:
partlist.h:33
_FORMATMACHINESTATE
_FORMATMACHINESTATE
Definition:
partlist.h:31
UCHAR
unsigned char UCHAR
Definition:
xmlstorage.h:181
_PARTLIST_UI::Top
SHORT Top
Definition:
partlist.h:62
List
_Must_inspect_result_ _In_ WDFCMRESLIST List
Definition:
wdfresource.h:550
FormatInstallPartition
Definition:
partlist.h:35
FormatOtherPartition
Definition:
partlist.h:36
_PARTLIST_UI::Bottom
SHORT Bottom
Definition:
partlist.h:64
FormatSystemPartition
Definition:
partlist.h:34
Bottom
static LPHIST_ENTRY Bottom
Definition:
history.c:54
GetPartTypeStringFromPartitionType
VOID GetPartTypeStringFromPartitionType(IN UCHAR partitionType, OUT PCHAR strPartType, IN ULONG cchPartType)
Definition:
drivepage.c:237
_PARTLIST_UI::CurrentDisk
PDISKENTRY CurrentDisk
Definition:
partlist.h:55
_PARTLIST_UI::Right
SHORT Right
Definition:
partlist.h:63
PFORMATMACHINESTATE
enum _FORMATMACHINESTATE * PFORMATMACHINESTATE
FormatDone
Definition:
partlist.h:37
_PARTLIST_UI::CurrentPartition
PPARTENTRY CurrentPartition
Definition:
partlist.h:56
OUT
#define OUT
Definition:
typedefs.h:40
_PARTLIST_UI::Offset
SHORT Offset
Definition:
partlist.h:67
ULONG
unsigned int ULONG
Definition:
retypes.h:1
void
Definition:
nsiface.idl:2306
InitPartitionListUi
VOID InitPartitionListUi(IN OUT PPARTLIST_UI ListUi, IN PPARTLIST List, IN PPARTENTRY CurrentEntry OPTIONAL, IN SHORT Left, IN SHORT Top, IN SHORT Right, IN SHORT Bottom)
Definition:
partlist.c:73
Top
static LPHIST_ENTRY Top
Definition:
history.c:53
PARTLIST_UI
struct _PARTLIST_UI PARTLIST_UI
_PARTLIST_UI
Definition:
partlist.h:44
OPTIONAL
PULONG MinorVersion OPTIONAL
Definition:
CrossNt.h:68
base
setup
usetup
partlist.h
Generated on Fri Jan 15 2021 06:03:27 for ReactOS by
1.8.15