ReactOS 0.4.15-dev-7907-g95bf896
inicache.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: INI file parser that caches contents of INI file in memory.
5 * COPYRIGHT: Copyright 2002-2018 Royce Mitchell III
6 */
7
8#pragma once
9
10typedef struct _INICACHEKEY
11{
14
18
19
20typedef struct _INICACHESECTION
21{
23
26
30
31
32typedef struct _INICACHE
33{
37
38
39typedef struct _PINICACHEITERATOR
40{
44
45
46typedef enum
47{
53
54/* FUNCTIONS ****************************************************************/
55
59 PCHAR FileBuffer,
62
68
74
75VOID
78
82 PWCHAR Name);
83
86 PINICACHESECTION Section,
88 PWCHAR *KeyData);
89
92 PINICACHESECTION Section,
94 PWCHAR *KeyData);
95
100 PWCHAR *KeyData);
101
102VOID
105
106
109 PINICACHESECTION Section,
110 PINICACHEKEY AnchorKey,
111 INSERTION_TYPE InsertionType,
112 PWCHAR Name,
113 PWCHAR Data);
114
117
122
127
131 PWCHAR Name);
132
133/* EOF */
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
_Must_inspect_result_ _In_opt_ PFLT_INSTANCE _Out_ PHANDLE FileHandle
Definition: fltkernel.h:1231
NTSTATUS IniCacheLoad(PINICACHE *Cache, PWCHAR FileName, BOOLEAN String)
Definition: inicache.c:621
NTSTATUS IniCacheLoadFromMemory(PINICACHE *Cache, PCHAR FileBuffer, ULONG FileLength, BOOLEAN String)
Definition: inicache.c:452
struct _INICACHEKEY INICACHEKEY
struct _INICACHESECTION * PINICACHESECTION
NTSTATUS IniCacheSaveByHandle(PINICACHE Cache, HANDLE FileHandle)
Definition: inicache.c:948
NTSTATUS IniCacheGetKey(PINICACHESECTION Section, PWCHAR KeyName, PWCHAR *KeyData)
Definition: inicache.c:716
struct _INICACHESECTION INICACHESECTION
struct _PINICACHEITERATOR * PINICACHEITERATOR
PINICACHESECTION IniCacheAppendSection(PINICACHE Cache, PWCHAR Name)
Definition: inicache.c:1088
INSERTION_TYPE
Definition: inicache.h:47
@ INSERT_BEFORE
Definition: inicache.h:49
@ INSERT_AFTER
Definition: inicache.h:50
@ INSERT_LAST
Definition: inicache.h:51
@ INSERT_FIRST
Definition: inicache.h:48
struct _INICACHE INICACHE
BOOLEAN IniCacheFindNextValue(PINICACHEITERATOR Iterator, PWCHAR *KeyName, PWCHAR *KeyData)
Definition: inicache.c:785
PINICACHEITERATOR IniCacheFindFirstValue(PINICACHESECTION Section, PWCHAR *KeyName, PWCHAR *KeyData)
Definition: inicache.c:744
NTSTATUS IniCacheSave(PINICACHE Cache, PWCHAR FileName)
Definition: inicache.c:1043
PINICACHEKEY IniCacheInsertKey(PINICACHESECTION Section, PINICACHEKEY AnchorKey, INSERTION_TYPE InsertionType, PWCHAR Name, PWCHAR Data)
Definition: inicache.c:826
struct _INICACHE * PINICACHE
PINICACHESECTION IniCacheGetSection(PINICACHE Cache, PWCHAR Name)
Definition: inicache.c:683
PINICACHE IniCacheCreate(VOID)
Definition: inicache.c:929
NTSTATUS IniCacheLoadByHandle(PINICACHE *Cache, HANDLE FileHandle, BOOLEAN String)
Definition: inicache.c:547
VOID IniCacheDestroy(PINICACHE Cache)
Definition: inicache.c:666
struct _INICACHEKEY * PINICACHEKEY
struct _PINICACHEITERATOR INICACHEITERATOR
VOID IniCacheFindClose(PINICACHEITERATOR Iterator)
Definition: inicache.c:815
_Out_ PNDIS_HANDLE _Out_ PUINT FileLength
Definition: ndis.h:3228
Definition: fatfs.h:173
struct _INICACHEKEY * Next
Definition: inicache.h:15
PWCHAR Name
Definition: inicache.h:12
PWCHAR Data
Definition: inicache.h:13
struct _INICACHEKEY * Prev
Definition: inicache.h:16
PINICACHEKEY FirstKey
Definition: inicache.h:24
struct _INICACHESECTION * Next
Definition: inicache.h:27
PINICACHEKEY LastKey
Definition: inicache.h:25
struct _INICACHESECTION * Prev
Definition: inicache.h:28
PINICACHESECTION LastSection
Definition: inicache.h:35
PINICACHESECTION FirstSection
Definition: inicache.h:34
PINICACHESECTION Section
Definition: inicache.h:41
PINICACHEKEY Key
Definition: inicache.h:42
uint16_t * PWCHAR
Definition: typedefs.h:56
uint32_t ULONG
Definition: typedefs.h:59
char * PCHAR
Definition: typedefs.h:51
_In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR Iterator
Definition: wdfchildlist.h:656
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING KeyName
Definition: wdfdevice.h:2699
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition: wdfdevice.h:2433