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 struct _PARTLIST_UI 32 { 33 PPARTLIST List; 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 */ 42 PDISKENTRY CurrentDisk; 43 PPARTENTRY CurrentPartition; 44 45 // PLIST_ENTRY FirstShown; 46 // PLIST_ENTRY LastShown; 47 48 SHORT Left; 49 SHORT Top; 50 SHORT Right; 51 SHORT Bottom; 52 53 SHORT Line; 54 SHORT Offset; 55 56 // BOOL Redraw; 57 } PARTLIST_UI, *PPARTLIST_UI; 58 59 60 VOID 61 GetPartitionTypeString( 62 IN PPARTENTRY PartEntry, 63 OUT PSTR strBuffer, 64 IN ULONG cchBuffer); 65 66 VOID 67 PartitionDescription( 68 IN PPARTENTRY PartEntry, 69 OUT PSTR strBuffer, 70 IN SIZE_T cchBuffer); 71 72 VOID 73 DiskDescription( 74 IN PDISKENTRY DiskEntry, 75 OUT PSTR strBuffer, 76 IN SIZE_T cchBuffer); 77 78 VOID 79 InitPartitionListUi( 80 IN OUT PPARTLIST_UI ListUi, 81 IN PPARTLIST List, 82 IN PPARTENTRY CurrentEntry OPTIONAL, 83 IN SHORT Left, 84 IN SHORT Top, 85 IN SHORT Right, 86 IN SHORT Bottom); 87 88 VOID 89 DrawPartitionList( 90 IN PPARTLIST_UI ListUi); 91 92 VOID 93 ScrollUpDownPartitionList( 94 _In_ PPARTLIST_UI ListUi, 95 _In_ BOOLEAN Direction); 96 97 /* EOF */ 98