ReactOS  0.4.15-dev-3165-gdf6fff7
genlist.h
Go to the documentation of this file.
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 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/genlist.h
23  * PURPOSE: Generic list functions
24  * PROGRAMMER:
25  */
26 
27 #pragma once
28 
29 // #include "../lib/utils/genlist.h"
30 
31 typedef NTSTATUS
34  OUT PSTR Buffer,
36 
37 typedef struct _GENERIC_LIST_UI
38 {
40 
44 
46 
52 
54 
56 
57 VOID
59  IN OUT PGENERIC_LIST_UI ListUi,
61  IN PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc);
62 
63 VOID
65  IN PGENERIC_LIST_UI ListUi);
66 
67 VOID
69  IN PGENERIC_LIST_UI ListUi,
70  IN SHORT Left,
71  IN SHORT Top,
72  IN SHORT Right,
73  IN SHORT Bottom);
74 
75 VOID
78  IN PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc,
79  IN SHORT Left,
80  IN SHORT Top);
81 
82 VOID
84  IN PGENERIC_LIST_UI ListUi);
85 
86 VOID
88  IN PGENERIC_LIST_UI ListUi);
89 
90 VOID
92  IN PGENERIC_LIST_UI ListUi);
93 
94 VOID
96  IN PGENERIC_LIST_UI ListUi);
97 
98 VOID
100  IN PGENERIC_LIST_UI ListUi,
101  IN ULONG uIndex);
102 
103 VOID
105  IN PGENERIC_LIST_UI ListUi);
106 
107 VOID
109  IN PGENERIC_LIST_UI ListUi,
110  IN CHAR AsciiChar);
111 
112 /* EOF */
VOID ScrollDownGenericList(IN PGENERIC_LIST_UI ListUi)
Definition: genlist.c:376
Definition: genlist.h:10
#define IN
Definition: typedefs.h:39
IN BOOLEAN OUT PSTR IN SIZE_T cchBufferSize
Definition: progress.h:34
struct _Entry Entry
Definition: kefuncs.h:627
VOID DrawGenericListCurrentItem(IN PGENERIC_LIST List, IN PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc, IN SHORT Left, IN SHORT Top)
Definition: genlist.c:353
IN BOOLEAN OUT PSTR Buffer
Definition: progress.h:34
PLIST_ENTRY FirstShown
Definition: genlist.h:41
char CHAR
Definition: xmlstorage.h:175
PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc
Definition: genlist.h:45
VOID ScrollToPositionGenericList(IN PGENERIC_LIST_UI ListUi, IN ULONG uIndex)
Definition: genlist.c:476
VOID RestoreGenericListUiState(IN PGENERIC_LIST_UI ListUi)
Definition: genlist.c:62
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
unsigned int BOOL
Definition: ntddk_ex.h:94
short SHORT
Definition: pedump.c:59
VOID ScrollPageUpGenericList(IN PGENERIC_LIST_UI ListUi)
Definition: genlist.c:454
VOID GenericListKeyPress(IN PGENERIC_LIST_UI ListUi, IN CHAR AsciiChar)
Definition: genlist.c:525
CHAR CurrentItemText[256]
Definition: genlist.h:53
PGENERIC_LIST List
Definition: genlist.h:39
VOID RedrawGenericList(IN PGENERIC_LIST_UI ListUi)
Definition: genlist.c:511
VOID ScrollPageDownGenericList(IN PGENERIC_LIST_UI ListUi)
Definition: genlist.c:432
VOID InitGenericListUi(IN OUT PGENERIC_LIST_UI ListUi, IN PGENERIC_LIST List, IN PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc)
Definition: genlist.c:37
struct _GENERIC_LIST_UI GENERIC_LIST_UI
#define NTSTATUS
Definition: precomp.h:20
_Must_inspect_result_ _In_ WDFCMRESLIST List
Definition: wdfresource.h:550
Definition: typedefs.h:119
ULONG_PTR SIZE_T
Definition: typedefs.h:80
static LPHIST_ENTRY Bottom
Definition: history.c:54
PLIST_ENTRY LastShown
Definition: genlist.h:42
signed char * PSTR
Definition: retypes.h:7
PGENERIC_LIST_ENTRY BackupEntry
Definition: genlist.h:43
VOID DrawGenericList(IN PGENERIC_LIST_UI ListUi, IN SHORT Left, IN SHORT Top, IN SHORT Right, IN SHORT Bottom)
Definition: genlist.c:326
SHORT Bottom
Definition: genlist.h:50
#define OUT
Definition: typedefs.h:40
struct _GENERIC_LIST_UI * PGENERIC_LIST_UI
unsigned int ULONG
Definition: retypes.h:1
VOID ScrollUpGenericList(IN PGENERIC_LIST_UI ListUi)
Definition: genlist.c:404
static LPHIST_ENTRY Top
Definition: history.c:53
NTSTATUS(NTAPI * PGET_ENTRY_DESCRIPTION)(IN PGENERIC_LIST_ENTRY Entry, OUT PSTR Buffer, IN SIZE_T cchBufferSize)
Definition: genlist.h:32