- Do only allow to install reactos on disks which are visible by the bios.
[reactos.git] / reactos / subsys / system / usetup / genlist.h
1 /*
2 * ReactOS kernel
3 * Copyright (C) 2004 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/genlist.h
23 * PURPOSE: Generic list functions
24 * PROGRAMMER: Eric Kohl
25 */
26
27 #ifndef __GENLIST_H__
28 #define __GENLIST_H__
29
30 typedef struct _GENERIC_LIST_ENTRY
31 {
32 LIST_ENTRY Entry;
33 PVOID UserData;
34 CHAR Text[1];
35 } GENERIC_LIST_ENTRY, *PGENERIC_LIST_ENTRY;
36
37
38 typedef struct _GENERIC_LIST
39 {
40 LIST_ENTRY ListHead;
41
42 SHORT Left;
43 SHORT Top;
44 SHORT Right;
45 SHORT Bottom;
46
47 PGENERIC_LIST_ENTRY CurrentEntry;
48 PGENERIC_LIST_ENTRY BackupEntry;
49 } GENERIC_LIST, *PGENERIC_LIST;
50
51
52
53 PGENERIC_LIST
54 CreateGenericList(VOID);
55
56 VOID
57 DestroyGenericList(PGENERIC_LIST List,
58 BOOLEAN FreeUserData);
59
60 BOOLEAN
61 AppendGenericListEntry(PGENERIC_LIST List,
62 PCHAR Text,
63 PVOID UserData,
64 BOOLEAN Current);
65
66 VOID
67 DrawGenericList(PGENERIC_LIST List,
68 SHORT Left,
69 SHORT Top,
70 SHORT Right,
71 SHORT Bottom);
72
73 VOID
74 ScrollDownGenericList(PGENERIC_LIST List);
75
76 VOID
77 ScrollUpGenericList(PGENERIC_LIST List);
78
79 PGENERIC_LIST_ENTRY
80 GetGenericListEntry(PGENERIC_LIST List);
81
82 VOID
83 SaveGenericListState(PGENERIC_LIST List);
84
85 VOID
86 RestoreGenericListState(PGENERIC_LIST List);
87
88 #endif /* __GENLIST_H__ */
89
90 /* EOF */