ReactOS 0.4.16-dev-297-gc569aee
infhostget.c File Reference
#include "inflib.h"
#include "infhost.h"
#include <debug.h>
Include dependency graph for infhostget.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

int InfHostFindFirstLine (HINF InfHandle, const WCHAR *Section, const WCHAR *Key, PINFCONTEXT *Context)
 
int InfHostFindNextLine (PINFCONTEXT ContextIn, PINFCONTEXT ContextOut)
 
int InfHostFindFirstMatchLine (PINFCONTEXT ContextIn, const WCHAR *Key, PINFCONTEXT ContextOut)
 
int InfHostFindNextMatchLine (PINFCONTEXT ContextIn, const WCHAR *Key, PINFCONTEXT ContextOut)
 
LONG InfHostGetLineCount (HINF InfHandle, PCWSTR Section)
 
LONG InfHostGetFieldCount (PINFCONTEXT Context)
 
int InfHostGetBinaryField (PINFCONTEXT Context, ULONG FieldIndex, UCHAR *ReturnBuffer, ULONG ReturnBufferSize, ULONG *RequiredSize)
 
int InfHostGetIntField (PINFCONTEXT Context, ULONG FieldIndex, INT *IntegerValue)
 
int InfHostGetMultiSzField (PINFCONTEXT Context, ULONG FieldIndex, WCHAR *ReturnBuffer, ULONG ReturnBufferSize, ULONG *RequiredSize)
 
int InfHostGetStringField (PINFCONTEXT Context, ULONG FieldIndex, WCHAR *ReturnBuffer, ULONG ReturnBufferSize, ULONG *RequiredSize)
 
int InfHostGetData (PINFCONTEXT Context, WCHAR **Key, WCHAR **Data)
 
int InfHostGetDataField (PINFCONTEXT Context, ULONG FieldIndex, WCHAR **Data)
 
VOID InfHostFreeContext (PINFCONTEXT Context)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 14 of file infhostget.c.

Function Documentation

◆ InfHostFindFirstLine()

int InfHostFindFirstLine ( HINF  InfHandle,
const WCHAR Section,
const WCHAR Key,
PINFCONTEXT Context 
)

Definition at line 18 of file infhostget.c.

22{
24
25 Status = InfpFindFirstLine(InfHandle, Section, Key, Context);
27 {
28 return 0;
29 }
30 else
31 {
32 errno = Status;
33 return -1;
34 }
35}
#define INF_SUCCESS(x)
Definition: builddep.h:82
Status
Definition: gdiplustypes.h:25
INFSTATUS InfpFindFirstLine(PINFCACHE Cache, PCWSTR Section, PCWSTR Key, PINFCONTEXT *Context)
Definition: infget.c:173
int INFSTATUS
Definition: infpriv.h:77
#define errno
Definition: errno.h:18

Referenced by registry_callback().

◆ InfHostFindFirstMatchLine()

int InfHostFindFirstMatchLine ( PINFCONTEXT  ContextIn,
const WCHAR Key,
PINFCONTEXT  ContextOut 
)

Definition at line 58 of file infhostget.c.

61{
63
64 Status = InfpFindFirstMatchLine(ContextIn, Key, ContextOut);
66 {
67 return 0;
68 }
69 else
70 {
71 errno = Status;
72 return -1;
73 }
74}
INFSTATUS InfpFindFirstMatchLine(PINFCONTEXT ContextIn, PCWSTR Key, PINFCONTEXT ContextOut)
Definition: infget.c:251

◆ InfHostFindNextLine()

int InfHostFindNextLine ( PINFCONTEXT  ContextIn,
PINFCONTEXT  ContextOut 
)

Definition at line 39 of file infhostget.c.

41{
43
44 Status = InfpFindNextLine(ContextIn, ContextOut);
46 {
47 return 0;
48 }
49 else
50 {
51 errno = Status;
52 return -1;
53 }
54}
INFSTATUS InfpFindNextLine(PINFCONTEXT ContextIn, PINFCONTEXT ContextOut)
Definition: infget.c:224

Referenced by registry_callback().

◆ InfHostFindNextMatchLine()

int InfHostFindNextMatchLine ( PINFCONTEXT  ContextIn,
const WCHAR Key,
PINFCONTEXT  ContextOut 
)

Definition at line 78 of file infhostget.c.

81{
83
84 Status = InfpFindNextMatchLine(ContextIn, Key, ContextOut);
86 {
87 return 0;
88 }
89 else
90 {
91 errno = Status;
92 return -1;
93 }
94}
INFSTATUS InfpFindNextMatchLine(PINFCONTEXT ContextIn, PCWSTR Key, PINFCONTEXT ContextOut)
Definition: infget.c:289

◆ InfHostFreeContext()

VOID InfHostFreeContext ( PINFCONTEXT  Context)

Definition at line 244 of file infhostget.c.

245{
247}
VOID InfpFreeContext(PINFCONTEXT Context)
Definition: infget.c:679

Referenced by registry_callback().

◆ InfHostGetBinaryField()

int InfHostGetBinaryField ( PINFCONTEXT  Context,
ULONG  FieldIndex,
UCHAR ReturnBuffer,
ULONG  ReturnBufferSize,
ULONG RequiredSize 
)

Definition at line 116 of file infhostget.c.

121{
123
126 if (INF_SUCCESS(Status))
127 {
128 return 0;
129 }
130 else
131 {
132 errno = Status;
133 return -1;
134 }
135}
INFSTATUS InfpGetBinaryField(PINFCONTEXT Context, ULONG FieldIndex, PUCHAR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infget.c:377
_In_ DWORD FieldIndex
Definition: setupapi.h:1895
_In_ DWORD _In_ DWORD ReturnBufferSize
Definition: setupapi.h:1897
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID _Out_ PULONG RequiredSize
Definition: wdfdevice.h:4439

Referenced by do_reg_operation().

◆ InfHostGetData()

int InfHostGetData ( PINFCONTEXT  Context,
WCHAR **  Key,
WCHAR **  Data 
)

Definition at line 205 of file infhostget.c.

208{
210
212 if (INF_SUCCESS(Status))
213 {
214 return 0;
215 }
216 else
217 {
218 errno = Status;
219 return -1;
220 }
221}
INFSTATUS InfpGetData(PINFCONTEXT Context, PWCHAR *Key, PWCHAR *Data)
Definition: infget.c:610

◆ InfHostGetDataField()

int InfHostGetDataField ( PINFCONTEXT  Context,
ULONG  FieldIndex,
WCHAR **  Data 
)

Definition at line 225 of file infhostget.c.

228{
230
232 if (INF_SUCCESS(Status))
233 {
234 return 0;
235 }
236 else
237 {
238 errno = Status;
239 return -1;
240 }
241}
INFSTATUS InfpGetDataField(PINFCONTEXT Context, ULONG FieldIndex, PWCHAR *Data)
Definition: infget.c:643

◆ InfHostGetFieldCount()

LONG InfHostGetFieldCount ( PINFCONTEXT  Context)

Definition at line 109 of file infhostget.c.

110{
112}
LONG InfpGetFieldCount(PINFCONTEXT Context)
Definition: infget.c:365

Referenced by do_reg_operation().

◆ InfHostGetIntField()

int InfHostGetIntField ( PINFCONTEXT  Context,
ULONG  FieldIndex,
INT IntegerValue 
)

Definition at line 139 of file infhostget.c.

142{
144
145 Status = InfpGetIntField(Context, FieldIndex, IntegerValue);
146 if (INF_SUCCESS(Status))
147 {
148 return 0;
149 }
150 else
151 {
152 errno = Status;
153 return -1;
154 }
155}
INFSTATUS InfpGetIntField(PINFCONTEXT Context, ULONG FieldIndex, INT *IntegerValue)
Definition: infget.c:433

Referenced by registry_callback().

◆ InfHostGetLineCount()

LONG InfHostGetLineCount ( HINF  InfHandle,
PCWSTR  Section 
)

Definition at line 98 of file infhostget.c.

100{
101 return InfpGetLineCount(InfHandle, Section);
102}
LONG InfpGetLineCount(HINF InfHandle, PCWSTR Section)
Definition: infget.c:327

◆ InfHostGetMultiSzField()

int InfHostGetMultiSzField ( PINFCONTEXT  Context,
ULONG  FieldIndex,
WCHAR ReturnBuffer,
ULONG  ReturnBufferSize,
ULONG RequiredSize 
)

Definition at line 159 of file infhostget.c.

164{
166
169 if (INF_SUCCESS(Status))
170 {
171 return 0;
172 }
173 else
174 {
175 errno = Status;
176 return -1;
177 }
178}
INFSTATUS InfpGetMultiSzField(PINFCONTEXT Context, ULONG FieldIndex, PWSTR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infget.c:476

Referenced by do_reg_operation().

◆ InfHostGetStringField()

int InfHostGetStringField ( PINFCONTEXT  Context,
ULONG  FieldIndex,
WCHAR ReturnBuffer,
ULONG  ReturnBufferSize,
ULONG RequiredSize 
)

Definition at line 182 of file infhostget.c.

187{
189
192 if (INF_SUCCESS(Status))
193 {
194 return 0;
195 }
196 else
197 {
198 errno = Status;
199 return -1;
200 }
201}
INFSTATUS InfpGetStringField(PINFCONTEXT Context, ULONG FieldIndex, PWSTR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infget.c:545

Referenced by do_reg_operation(), and registry_callback().