Added driver name to the partition list
[reactos.git] / reactos / 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: partlist.h,v 1.5 2002/11/28 19:20:37 ekohl Exp $
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
44 UNICODE_STRING DriverName;
45 } PARTDATA, *PPARTDATA;
46
47
48 typedef struct _PARTENTRY
49 {
50 ULONGLONG PartSize;
51 ULONG PartNumber;
52 ULONG PartType;
53
54 CHAR DriveLetter;
55 CHAR VolumeLabel[17];
56 CHAR FileSystemName[9];
57
58 BOOL Unpartitioned;
59
60 BOOL Used;
61 } PARTENTRY, *PPARTENTRY;
62
63 typedef struct _DISKENTRY
64 {
65 ULONGLONG DiskSize;
66 ULONG DiskNumber;
67 USHORT Port;
68 USHORT Bus;
69 USHORT Id;
70 BOOL FixedDisk;
71
72 UNICODE_STRING DriverName;
73
74 ULONG PartCount;
75 PPARTENTRY PartArray;
76
77 } DISKENTRY, *PDISKENTRY;
78
79
80 typedef struct _PARTLIST
81 {
82 SHORT Left;
83 SHORT Top;
84 SHORT Right;
85 SHORT Bottom;
86
87 SHORT Line;
88
89 ULONG TopDisk;
90 ULONG TopPartition;
91
92 ULONG CurrentDisk;
93 ULONG CurrentPartition;
94
95 ULONG DiskCount;
96 PDISKENTRY DiskArray;
97
98 } PARTLIST, *PPARTLIST;
99
100
101
102
103 PPARTLIST
104 CreatePartitionList(SHORT Left,
105 SHORT Top,
106 SHORT Right,
107 SHORT Bottom);
108
109 VOID
110 DestroyPartitionList(PPARTLIST List);
111
112 VOID
113 DrawPartitionList(PPARTLIST List);
114
115 VOID
116 ScrollDownPartitionList(PPARTLIST List);
117
118 VOID
119 ScrollUpPartitionList(PPARTLIST List);
120
121 BOOL
122 GetPartitionData(PPARTLIST List,
123 PPARTDATA Data);
124
125 #endif /* __PARTLIST_H__ */
126
127 /* EOF */