ReactOS  0.4.15-dev-3294-ge98684e
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 {
38  // CheckSystemPartition,
39  // CheckInstallPartition,
40  // CheckOtherPartition,
41  // CheckDone
43 
44 typedef struct _PARTLIST_UI
45 {
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  */
57 
58  // PLIST_ENTRY FirstShown;
59  // PLIST_ENTRY LastShown;
60 
65 
68 
69  // BOOL Redraw;
71 
72 
73 VOID
75  IN PPARTENTRY PartEntry,
76  OUT PSTR strBuffer,
78 
79 VOID
81  IN PPARTENTRY PartEntry,
82  OUT PSTR strBuffer,
84 
85 VOID
87  IN PDISKENTRY DiskEntry,
88  OUT PSTR strBuffer,
90 
91 VOID
93  IN OUT PPARTLIST_UI ListUi,
95  IN PPARTENTRY CurrentEntry OPTIONAL,
96  IN SHORT Left,
97  IN SHORT Top,
98  IN SHORT Right,
99  IN SHORT Bottom);
100 
101 VOID
103  IN PPARTLIST_UI ListUi);
104 
105 VOID
107  IN PPARTLIST_UI ListUi);
108 
109 VOID
111  IN PPARTLIST_UI ListUi);
112 
113 /* EOF */
VOID DrawPartitionList(IN PPARTLIST_UI ListUi)
Definition: partlist.c:582
SHORT Left
Definition: partlist.h:61
#define IN
Definition: typedefs.h:39
enum _FORMATMACHINESTATE FORMATMACHINESTATE
VOID GetPartitionTypeString(IN PPARTENTRY PartEntry, OUT PSTR strBuffer, IN ULONG cchBuffer)
Definition: drivepage.c:237
VOID PartitionDescription(IN PPARTENTRY PartEntry, OUT PSTR strBuffer, IN SIZE_T cchBuffer)
Definition: partlist.c:148
VOID ScrollDownPartitionList(IN PPARTLIST_UI ListUi)
Definition: partlist.c:829
short SHORT
Definition: pedump.c:59
static DWORD cchBuffer
Definition: fusion.c:85
struct _PARTLIST_UI * PPARTLIST_UI
SHORT Line
Definition: partlist.h:66
PPARTLIST List
Definition: partlist.h:46
VOID ScrollUpPartitionList(IN PPARTLIST_UI ListUi)
Definition: partlist.c:842
VOID DiskDescription(IN PDISKENTRY DiskEntry, OUT PSTR strBuffer, IN SIZE_T cchBuffer)
Definition: partlist.c:301
Definition: partlist.h:33
_FORMATMACHINESTATE
Definition: partlist.h:31
SHORT Top
Definition: partlist.h:62
_Must_inspect_result_ _In_ WDFCMRESLIST List
Definition: wdfresource.h:550
SHORT Bottom
Definition: partlist.h:64
ULONG_PTR SIZE_T
Definition: typedefs.h:80
static LPHIST_ENTRY Bottom
Definition: history.c:54
signed char * PSTR
Definition: retypes.h:7
PDISKENTRY CurrentDisk
Definition: partlist.h:55
SHORT Right
Definition: partlist.h:63
enum _FORMATMACHINESTATE * PFORMATMACHINESTATE
PPARTENTRY CurrentPartition
Definition: partlist.h:56
#define OUT
Definition: typedefs.h:40
SHORT Offset
Definition: partlist.h:67
unsigned int ULONG
Definition: retypes.h:1
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:351
static LPHIST_ENTRY Top
Definition: history.c:53
struct _PARTLIST_UI PARTLIST_UI
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68