ReactOS 0.4.16-dev-297-gc569aee
infrosget.c
Go to the documentation of this file.
1/*
2 * PROJECT: .inf file parser
3 * LICENSE: GPL - See COPYING in the top level directory
4 * PROGRAMMER: Royce Mitchell III
5 * Eric Kohl
6 * Ge van Geldorp <gvg@reactos.org>
7 */
8
9/* INCLUDES *****************************************************************/
10
11#include "inflib.h"
12#include "infros.h"
13
14#define NDEBUG
15#include <debug.h>
16
17
20 PCWSTR Section,
21 PCWSTR Key,
23{
24 return INF_SUCCESS(InfpFindFirstLine(InfHandle, Section, Key, Context));
25}
26
27
30 PINFCONTEXT ContextOut)
31{
32 return INF_SUCCESS(InfpFindNextLine(ContextIn, ContextOut));
33}
34
35
38 PCWSTR Key,
39 PINFCONTEXT ContextOut)
40{
41 return INF_SUCCESS(InfpFindFirstMatchLine(ContextIn, Key, ContextOut));
42}
43
44
47 PCWSTR Key,
48 PINFCONTEXT ContextOut)
49{
50 return INF_SUCCESS(InfpFindNextMatchLine(ContextIn, Key, ContextOut));
51}
52
53
54LONG
56 PCWSTR Section)
57{
58 return InfpGetLineCount(InfHandle, Section);
59}
60
61
62/* InfGetLineText */
63
64
65LONG
67{
69}
70
71
75 PUCHAR ReturnBuffer,
78{
81}
82
83
87 INT *IntegerValue)
88{
89 return INF_SUCCESS(InfpGetIntField(Context, FieldIndex, IntegerValue));
90}
91
92
96 PWSTR ReturnBuffer,
99{
102}
103
104
108 PWSTR ReturnBuffer,
111{
112 return INF_SUCCESS(InfpGetStringField(Context, FieldIndex, ReturnBuffer,
114}
115
116
119 PWCHAR *Key,
120 PWCHAR *Data)
121{
123}
124
125
129 PWCHAR *Data)
130{
132}
133
134VOID
136{
138}
139
140/* EOF */
unsigned char BOOLEAN
#define INF_SUCCESS(x)
Definition: builddep.h:82
INFSTATUS InfpGetDataField(PINFCONTEXT Context, ULONG FieldIndex, PWCHAR *Data)
Definition: infget.c:643
INFSTATUS InfpGetIntField(PINFCONTEXT Context, ULONG FieldIndex, INT *IntegerValue)
Definition: infget.c:433
INFSTATUS InfpFindFirstMatchLine(PINFCONTEXT ContextIn, PCWSTR Key, PINFCONTEXT ContextOut)
Definition: infget.c:251
INFSTATUS InfpFindFirstLine(PINFCACHE Cache, PCWSTR Section, PCWSTR Key, PINFCONTEXT *Context)
Definition: infget.c:173
VOID InfpFreeContext(PINFCONTEXT Context)
Definition: infget.c:679
INFSTATUS InfpGetStringField(PINFCONTEXT Context, ULONG FieldIndex, PWSTR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infget.c:545
LONG InfpGetLineCount(HINF InfHandle, PCWSTR Section)
Definition: infget.c:327
LONG InfpGetFieldCount(PINFCONTEXT Context)
Definition: infget.c:365
INFSTATUS InfpGetData(PINFCONTEXT Context, PWCHAR *Key, PWCHAR *Data)
Definition: infget.c:610
INFSTATUS InfpGetMultiSzField(PINFCONTEXT Context, ULONG FieldIndex, PWSTR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infget.c:476
INFSTATUS InfpFindNextLine(PINFCONTEXT ContextIn, PINFCONTEXT ContextOut)
Definition: infget.c:224
INFSTATUS InfpGetBinaryField(PINFCONTEXT Context, ULONG FieldIndex, PUCHAR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infget.c:377
INFSTATUS InfpFindNextMatchLine(PINFCONTEXT ContextIn, PCWSTR Key, PINFCONTEXT ContextOut)
Definition: infget.c:289
BOOLEAN InfFindFirstMatchLine(PINFCONTEXT ContextIn, PCWSTR Key, PINFCONTEXT ContextOut)
Definition: infrosget.c:37
BOOLEAN InfGetIntField(PINFCONTEXT Context, ULONG FieldIndex, INT *IntegerValue)
Definition: infrosget.c:85
BOOLEAN InfFindFirstLine(HINF InfHandle, PCWSTR Section, PCWSTR Key, PINFCONTEXT *Context)
Definition: infrosget.c:19
BOOLEAN InfFindNextMatchLine(PINFCONTEXT ContextIn, PCWSTR Key, PINFCONTEXT ContextOut)
Definition: infrosget.c:46
VOID InfFreeContext(PINFCONTEXT Context)
Definition: infrosget.c:135
BOOLEAN InfGetDataField(PINFCONTEXT Context, ULONG FieldIndex, PWCHAR *Data)
Definition: infrosget.c:127
BOOLEAN InfFindNextLine(PINFCONTEXT ContextIn, PINFCONTEXT ContextOut)
Definition: infrosget.c:29
BOOLEAN InfGetData(PINFCONTEXT Context, PWCHAR *Key, PWCHAR *Data)
Definition: infrosget.c:118
BOOLEAN InfGetBinaryField(PINFCONTEXT Context, ULONG FieldIndex, PUCHAR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infrosget.c:73
LONG InfGetLineCount(HINF InfHandle, PCWSTR Section)
Definition: infrosget.c:55
LONG InfGetFieldCount(PINFCONTEXT Context)
Definition: infrosget.c:66
BOOLEAN InfGetMultiSzField(PINFCONTEXT Context, ULONG FieldIndex, PWSTR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infrosget.c:94
BOOLEAN InfGetStringField(PINFCONTEXT Context, ULONG FieldIndex, PWSTR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infrosget.c:106
long LONG
Definition: pedump.c:60
_In_ DWORD FieldIndex
Definition: setupapi.h:1895
_In_ DWORD _In_ DWORD ReturnBufferSize
Definition: setupapi.h:1897
uint16_t * PWSTR
Definition: typedefs.h:56
uint32_t * PULONG
Definition: typedefs.h:59
const uint16_t * PCWSTR
Definition: typedefs.h:57
int32_t INT
Definition: typedefs.h:58
uint16_t * PWCHAR
Definition: typedefs.h:56
unsigned char * PUCHAR
Definition: typedefs.h:53
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID _Out_ PULONG RequiredSize
Definition: wdfdevice.h:4439