ReactOS 0.4.15-dev-8434-g155a7c7
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
31typedef struct _PARTLIST_UI
32{
34
35 /*
36 * Selected partition.
37 *
38 * NOTE that when CurrentPartition != NULL, then CurrentPartition->DiskEntry
39 * must be the same as CurrentDisk. We should however keep the two members
40 * separated as we can have a selected disk without any partition.
41 */
44
45 // PLIST_ENTRY FirstShown;
46 // PLIST_ENTRY LastShown;
47
52
55
56 // BOOL Redraw;
58
59
60VOID
62 IN PPARTENTRY PartEntry,
63 OUT PSTR strBuffer,
65
66VOID
68 IN PPARTENTRY PartEntry,
69 OUT PSTR strBuffer,
71
72VOID
74 IN PDISKENTRY DiskEntry,
75 OUT PSTR strBuffer,
77
78VOID
80 IN OUT PPARTLIST_UI ListUi,
82 IN PPARTENTRY CurrentEntry OPTIONAL,
83 IN SHORT Left,
84 IN SHORT Top,
85 IN SHORT Right,
87
88VOID
90 IN PPARTLIST_UI ListUi);
91
92VOID
94 _In_ PPARTLIST_UI ListUi,
96
97/* EOF */
unsigned char BOOLEAN
static LPHIST_ENTRY Bottom
Definition: history.c:54
static LPHIST_ENTRY Top
Definition: history.c:53
static DWORD cchBuffer
Definition: fusion.c:85
#define _In_
Definition: ms_sal.h:308
short SHORT
Definition: pedump.c:59
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
SHORT Left
Definition: partlist.h:48
SHORT Line
Definition: partlist.h:53
SHORT Offset
Definition: partlist.h:54
SHORT Right
Definition: partlist.h:50
SHORT Bottom
Definition: partlist.h:51
PPARTLIST List
Definition: partlist.h:33
SHORT Top
Definition: partlist.h:49
PDISKENTRY CurrentDisk
Definition: partlist.h:42
PPARTENTRY CurrentPartition
Definition: partlist.h:43
char * PSTR
Definition: typedefs.h:51
ULONG_PTR SIZE_T
Definition: typedefs.h:80
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
VOID ScrollUpDownPartitionList(_In_ PPARTLIST_UI ListUi, _In_ BOOLEAN Direction)
Definition: partlist.c:841
VOID PartitionDescription(IN PPARTENTRY PartEntry, OUT PSTR strBuffer, IN SIZE_T cchBuffer)
Definition: partlist.c:148
struct _PARTLIST_UI * PPARTLIST_UI
VOID DiskDescription(IN PDISKENTRY DiskEntry, OUT PSTR strBuffer, IN SIZE_T cchBuffer)
Definition: partlist.c:301
VOID GetPartitionTypeString(IN PPARTENTRY PartEntry, OUT PSTR strBuffer, IN ULONG cchBuffer)
Definition: drivepage.c:237
VOID DrawPartitionList(IN PPARTLIST_UI ListUi)
Definition: partlist.c:582
struct _PARTLIST_UI PARTLIST_UI
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
WDF_EXTERN_C_START typedef _In_ WDFDEVICE _In_ WDFCONTEXT _In_ WDF_DMA_DIRECTION Direction
_Must_inspect_result_ _In_ WDFCMRESLIST List
Definition: wdfresource.h:550