ReactOS  0.4.14-dev-606-g14ebc0b
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 
18 BOOLEAN
20  PCWSTR Section,
21  PCWSTR Key,
23 {
24  return INF_SUCCESS(InfpFindFirstLine(InfHandle, Section, Key, Context));
25 }
26 
27 
28 BOOLEAN
30  PINFCONTEXT ContextOut)
31 {
32  return INF_SUCCESS(InfpFindNextLine(ContextIn, ContextOut));
33 }
34 
35 
36 BOOLEAN
38  PCWSTR Key,
39  PINFCONTEXT ContextOut)
40 {
41  return INF_SUCCESS(InfpFindFirstMatchLine(ContextIn, Key, ContextOut));
42 }
43 
44 
45 BOOLEAN
47  PCWSTR Key,
48  PINFCONTEXT ContextOut)
49 {
50  return INF_SUCCESS(InfpFindNextMatchLine(ContextIn, Key, ContextOut));
51 }
52 
53 
54 LONG
56  PCWSTR Section)
57 {
58  return InfpGetLineCount(InfHandle, Section);
59 }
60 
61 
62 /* InfGetLineText */
63 
64 
65 LONG
67 {
68  return InfpGetFieldCount(Context);
69 }
70 
71 
72 BOOLEAN
75  PUCHAR ReturnBuffer,
78 {
79  return INF_SUCCESS(InfpGetBinaryField(Context, FieldIndex, ReturnBuffer,
81 }
82 
83 
84 BOOLEAN
87  INT *IntegerValue)
88 {
89  return INF_SUCCESS(InfpGetIntField(Context, FieldIndex, IntegerValue));
90 }
91 
92 
93 BOOLEAN
96  PWSTR ReturnBuffer,
99 {
100  return INF_SUCCESS(InfpGetMultiSzField(Context, FieldIndex, ReturnBuffer,
102 }
103 
104 
105 BOOLEAN
108  PWSTR ReturnBuffer,
111 {
112  return INF_SUCCESS(InfpGetStringField(Context, FieldIndex, ReturnBuffer,
114 }
115 
116 
117 BOOLEAN
119  PWCHAR *Key,
120  PWCHAR *Data)
121 {
123 }
124 
125 
126 BOOLEAN
129  PWCHAR *Data)
130 {
132 }
133 
134 VOID
136 {
138 }
139 
140 /* EOF */
#define INF_SUCCESS(x)
Definition: builddep.h:82
BOOLEAN InfFindFirstMatchLine(PINFCONTEXT ContextIn, PCWSTR Key, PINFCONTEXT ContextOut)
Definition: infrosget.c:37
const uint16_t * PCWSTR
Definition: typedefs.h:55
INFSTATUS InfpGetBinaryField(PINFCONTEXT Context, ULONG FieldIndex, PUCHAR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infget.c:377
BOOLEAN InfGetDataField(PINFCONTEXT Context, ULONG FieldIndex, PWCHAR *Data)
Definition: infrosget.c:127
BOOLEAN InfGetIntField(PINFCONTEXT Context, ULONG FieldIndex, INT *IntegerValue)
Definition: infrosget.c:85
uint16_t * PWSTR
Definition: typedefs.h:54
unsigned char * PUCHAR
Definition: retypes.h:3
INFSTATUS InfpFindFirstLine(PINFCACHE Cache, PCWSTR Section, PCWSTR Key, PINFCONTEXT *Context)
Definition: infget.c:173
_In_ DWORD _In_ DWORD ReturnBufferSize
Definition: setupapi.h:1892
BOOLEAN InfFindFirstLine(HINF InfHandle, PCWSTR Section, PCWSTR Key, PINFCONTEXT *Context)
Definition: infrosget.c:19
VOID InfFreeContext(PINFCONTEXT Context)
Definition: infrosget.c:135
INFSTATUS InfpGetData(PINFCONTEXT Context, PWCHAR *Key, PWCHAR *Data)
Definition: infget.c:610
uint16_t * PWCHAR
Definition: typedefs.h:54
INFSTATUS InfpGetStringField(PINFCONTEXT Context, ULONG FieldIndex, PWSTR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infget.c:545
INFSTATUS InfpGetDataField(PINFCONTEXT Context, ULONG FieldIndex, PWCHAR *Data)
Definition: infget.c:643
int32_t INT
Definition: typedefs.h:56
BOOLEAN InfFindNextLine(PINFCONTEXT ContextIn, PINFCONTEXT ContextOut)
Definition: infrosget.c:29
BOOLEAN InfGetBinaryField(PINFCONTEXT Context, ULONG FieldIndex, PUCHAR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infrosget.c:73
BOOLEAN InfGetStringField(PINFCONTEXT Context, ULONG FieldIndex, PWSTR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infrosget.c:106
long LONG
Definition: pedump.c:60
BOOLEAN InfGetMultiSzField(PINFCONTEXT Context, ULONG FieldIndex, PWSTR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infrosget.c:94
LONG InfGetFieldCount(PINFCONTEXT Context)
Definition: infrosget.c:66
unsigned char BOOLEAN
_Inout_ PRTL_BUFFER _In_ SIZE_T RequiredSize
INFSTATUS InfpFindNextLine(PINFCONTEXT ContextIn, PINFCONTEXT ContextOut)
Definition: infget.c:224
_In_ DWORD FieldIndex
Definition: setupapi.h:1890
INFSTATUS InfpGetMultiSzField(PINFCONTEXT Context, ULONG FieldIndex, PWSTR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infget.c:476
INFSTATUS InfpFindNextMatchLine(PINFCONTEXT ContextIn, PCWSTR Key, PINFCONTEXT ContextOut)
Definition: infget.c:289
LONG InfpGetFieldCount(PINFCONTEXT Context)
Definition: infget.c:365
BOOLEAN InfGetData(PINFCONTEXT Context, PWCHAR *Key, PWCHAR *Data)
Definition: infrosget.c:118
LONG InfpGetLineCount(HINF InfHandle, PCWSTR Section)
Definition: infget.c:327
VOID InfpFreeContext(PINFCONTEXT Context)
Definition: infget.c:679
unsigned int * PULONG
Definition: retypes.h:1
unsigned int ULONG
Definition: retypes.h:1
LONG InfGetLineCount(HINF InfHandle, PCWSTR Section)
Definition: infrosget.c:55
BOOLEAN InfFindNextMatchLine(PINFCONTEXT ContextIn, PCWSTR Key, PINFCONTEXT ContextOut)
Definition: infrosget.c:46
INFSTATUS InfpFindFirstMatchLine(PINFCONTEXT ContextIn, PCWSTR Key, PINFCONTEXT ContextOut)
Definition: infget.c:251
INFSTATUS InfpGetIntField(PINFCONTEXT Context, ULONG FieldIndex, INT *IntegerValue)
Definition: infget.c:433