3 * Copyright (C) 2004 ReactOS Team
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.
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.
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.
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
29 struct _GENERIC_LIST_ENTRY
;
30 typedef struct _GENERIC_LIST_ENTRY
*PGENERIC_LIST_ENTRY
;
32 typedef struct _GENERIC_LIST
*PGENERIC_LIST
;
35 CreateGenericList(VOID
);
38 DestroyGenericList(PGENERIC_LIST List
,
39 BOOLEAN FreeUserData
);
42 AppendGenericListEntry(PGENERIC_LIST List
,
48 DrawGenericList(PGENERIC_LIST List
,
55 DrawScrollBarGenericLis(PGENERIC_LIST List
);
58 ScrollDownGenericList(PGENERIC_LIST List
);
61 ScrollUpGenericList(PGENERIC_LIST List
);
64 ScrollPageDownGenericList(PGENERIC_LIST List
);
67 ScrollPageUpGenericList(PGENERIC_LIST List
);
70 ScrollToPositionGenericList (PGENERIC_LIST List
, ULONG uIndex
);
73 RedrawGenericList(PGENERIC_LIST List
);
76 SetCurrentListEntry(PGENERIC_LIST List
, PGENERIC_LIST_ENTRY Entry
);
79 GetCurrentListEntry(PGENERIC_LIST List
);
82 GetFirstListEntry(PGENERIC_LIST List
);
85 GetNextListEntry(PGENERIC_LIST_ENTRY Entry
);
88 GetListEntryUserData(PGENERIC_LIST_ENTRY List
);
91 GetListEntryText(PGENERIC_LIST_ENTRY List
);
94 SaveGenericListState(PGENERIC_LIST List
);
97 RestoreGenericListState(PGENERIC_LIST List
);
100 GenericListKeyPress (PGENERIC_LIST List
, CHAR AsciChar
);