update for HEAD-2002110401
[reactos.git] / subsys / system / usetup / partlist.h
1 /*
2  *  ReactOS kernel
3  *  Copyright (C) 2002 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
16  *  along with this program; if not, write to the Free Software
17  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19 /* $Id$
20  * COPYRIGHT:       See COPYING in the top level directory
21  * PROJECT:         ReactOS text-mode setup
22  * FILE:            subsys/system/usetup/partlist.h
23  * PURPOSE:         Partition list functions
24  * PROGRAMMER:      Eric Kohl
25  */
26
27 #ifndef __PARTLIST_H__
28 #define __PARTLIST_H__
29
30 typedef struct _PARTDATA
31 {
32   ULONGLONG DiskSize;
33   ULONG DiskNumber;
34   USHORT Port;
35   USHORT Bus;
36   USHORT Id;
37
38   ULONGLONG PartSize;
39   ULONG PartNumber;
40   ULONG PartType;
41
42   CHAR DriveLetter;
43 } PARTDATA, *PPARTDATA;
44
45
46 typedef struct _PARTENTRY
47 {
48   ULONGLONG PartSize;
49   ULONG PartNumber;
50   ULONG PartType;
51
52   CHAR DriveLetter;
53   BOOL Used;
54 } PARTENTRY, *PPARTENTRY;
55
56 typedef struct _DISKENTRY
57 {
58   ULONGLONG DiskSize;
59   ULONG DiskNumber;
60   USHORT Port;
61   USHORT Bus;
62   USHORT Id;
63   BOOL FixedDisk;
64
65   ULONG PartCount;
66   PPARTENTRY PartArray;
67
68 } DISKENTRY, *PDISKENTRY;
69
70
71 typedef struct _PARTLIST
72 {
73   SHORT Left;
74   SHORT Top;
75   SHORT Right;
76   SHORT Bottom;
77
78   SHORT Line;
79
80   ULONG TopDisk;
81   ULONG TopPartition;
82
83   ULONG CurrentDisk;
84   ULONG CurrentPartition;
85
86   ULONG DiskCount;
87   PDISKENTRY DiskArray;
88
89 } PARTLIST, *PPARTLIST;
90
91
92
93
94 PPARTLIST
95 CreatePartitionList(SHORT Left,
96                     SHORT Top,
97                     SHORT Right,
98                     SHORT Bottom);
99
100 VOID
101 DestroyPartitionList(PPARTLIST List);
102
103 VOID
104 DrawPartitionList(PPARTLIST List);
105
106 VOID
107 ScrollDownPartitionList(PPARTLIST List);
108
109 VOID
110 ScrollUpPartitionList(PPARTLIST List);
111
112 BOOL
113 GetPartitionData(PPARTLIST List,
114                  PPARTDATA Data);
115
116 #endif /* __PARTLIST_H__ */
117
118 /* EOF */