ReactOS 0.4.15-dev-7834-g00c4b3d
genlist.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Setup Library
3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * PURPOSE: Generic list functions
5 * COPYRIGHT: Copyright 2008-2018 Christoph von Wittich <christoph at reactos.org>
6 */
7
8#pragma once
9
10typedef struct _GENERIC_LIST_ENTRY
11{
15 ULONG_PTR UiData; // Cache variable for any UI list that displays these items
17
18typedef struct _GENERIC_LIST
19{
24
25
28
29VOID
32 IN BOOLEAN FreeData);
33
38 IN BOOLEAN Current);
39
40VOID
44
48
52
56
60
64
68
69/* EOF */
unsigned char BOOLEAN
PGENERIC_LIST CreateGenericList(VOID)
Definition: genlist.c:20
ULONG_PTR GetListEntryUiData(IN PGENERIC_LIST_ENTRY Entry)
Definition: genlist.c:133
VOID SetCurrentListEntry(IN PGENERIC_LIST List, IN PGENERIC_LIST_ENTRY Entry)
Definition: genlist.c:87
struct _GENERIC_LIST_ENTRY GENERIC_LIST_ENTRY
struct _GENERIC_LIST_ENTRY * PGENERIC_LIST_ENTRY
PGENERIC_LIST_ENTRY GetFirstListEntry(IN PGENERIC_LIST List)
Definition: genlist.c:104
BOOLEAN AppendGenericListEntry(IN OUT PGENERIC_LIST List, IN PVOID Data, IN BOOLEAN Current)
Definition: genlist.c:62
VOID DestroyGenericList(IN OUT PGENERIC_LIST List, IN BOOLEAN FreeData)
Definition: genlist.c:36
PGENERIC_LIST_ENTRY GetCurrentListEntry(IN PGENERIC_LIST List)
Definition: genlist.c:97
struct _GENERIC_LIST GENERIC_LIST
struct _GENERIC_LIST * PGENERIC_LIST
ULONG GetNumberOfListEntries(IN PGENERIC_LIST List)
Definition: genlist.c:140
PVOID GetListEntryData(IN PGENERIC_LIST_ENTRY Entry)
Definition: genlist.c:126
PGENERIC_LIST_ENTRY GetNextListEntry(IN PGENERIC_LIST_ENTRY Entry)
Definition: genlist.c:114
base of all file and directory entries
Definition: entries.h:83
Definition: genlist.h:11
PVOID Data
Definition: genlist.h:14
struct _GENERIC_LIST * List
Definition: genlist.h:13
LIST_ENTRY Entry
Definition: genlist.h:12
ULONG_PTR UiData
Definition: genlist.h:15
LIST_ENTRY ListHead
Definition: genlist.h:20
PGENERIC_LIST_ENTRY CurrentEntry
Definition: genlist.h:22
ULONG NumOfEntries
Definition: genlist.h:21
Definition: typedefs.h:120
uint32_t ULONG_PTR
Definition: typedefs.h:65
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
_Must_inspect_result_ _In_ WDFCMRESLIST List
Definition: wdfresource.h:550