ReactOS 0.4.16-dev-598-gc07fba4
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
29
30VOID
34 IN BOOLEAN FreeData);
35
41 IN BOOLEAN Current);
42
43VOID
48
53
58
63
68
72
77
78/* EOF */
unsigned char BOOLEAN
ULONG NTAPI GetNumberOfListEntries(IN PGENERIC_LIST List)
Definition: genlist.c:149
VOID NTAPI SetCurrentListEntry(IN PGENERIC_LIST List, IN PGENERIC_LIST_ENTRY Entry)
Definition: genlist.c:91
VOID NTAPI DestroyGenericList(IN OUT PGENERIC_LIST List, IN BOOLEAN FreeData)
Definition: genlist.c:38
ULONG_PTR GetListEntryUiData(IN PGENERIC_LIST_ENTRY Entry)
Definition: genlist.c:141
struct _GENERIC_LIST_ENTRY GENERIC_LIST_ENTRY
struct _GENERIC_LIST_ENTRY * PGENERIC_LIST_ENTRY
PGENERIC_LIST NTAPI CreateGenericList(VOID)
Definition: genlist.c:21
BOOLEAN NTAPI AppendGenericListEntry(IN OUT PGENERIC_LIST List, IN PVOID Data, IN BOOLEAN Current)
Definition: genlist.c:65
struct _GENERIC_LIST GENERIC_LIST
PGENERIC_LIST_ENTRY NTAPI GetFirstListEntry(IN PGENERIC_LIST List)
Definition: genlist.c:110
PGENERIC_LIST_ENTRY NTAPI GetNextListEntry(IN PGENERIC_LIST_ENTRY Entry)
Definition: genlist.c:121
PGENERIC_LIST_ENTRY NTAPI GetCurrentListEntry(IN PGENERIC_LIST List)
Definition: genlist.c:102
PVOID NTAPI GetListEntryData(IN PGENERIC_LIST_ENTRY Entry)
Definition: genlist.c:134
struct _GENERIC_LIST * PGENERIC_LIST
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
#define NTAPI
Definition: typedefs.h:36
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