ReactOS  0.4.14-dev-114-gc8cbd56
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);
26  if (INF_SUCCESS(Status))
27  {
28  return 0;
29  }
30  else
31  {
32  errno = Status;
33  return -1;
34  }
35 }
#define INF_SUCCESS(x)
Definition: builddep.h:82
INFSTATUS InfpFindFirstLine(PINFCACHE Cache, PCWSTR Section, PCWSTR Key, PINFCONTEXT *Context)
Definition: infget.c:173
int errno
int INFSTATUS
Definition: infpriv.h:77
Status
Definition: gdiplustypes.h:24

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);
65  if (INF_SUCCESS(Status))
66  {
67  return 0;
68  }
69  else
70  {
71  errno = Status;
72  return -1;
73  }
74 }
#define INF_SUCCESS(x)
Definition: builddep.h:82
int errno
int INFSTATUS
Definition: infpriv.h:77
Status
Definition: gdiplustypes.h:24
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);
45  if (INF_SUCCESS(Status))
46  {
47  return 0;
48  }
49  else
50  {
51  errno = Status;
52  return -1;
53  }
54 }
#define INF_SUCCESS(x)
Definition: builddep.h:82
int errno
int INFSTATUS
Definition: infpriv.h:77
INFSTATUS InfpFindNextLine(PINFCONTEXT ContextIn, PINFCONTEXT ContextOut)
Definition: infget.c:224
Status
Definition: gdiplustypes.h:24

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);
85  if (INF_SUCCESS(Status))
86  {
87  return 0;
88  }
89  else
90  {
91  errno = Status;
92  return -1;
93  }
94 }
#define INF_SUCCESS(x)
Definition: builddep.h:82
int errno
int INFSTATUS
Definition: infpriv.h:77
INFSTATUS InfpFindNextMatchLine(PINFCONTEXT ContextIn, PCWSTR Key, PINFCONTEXT ContextOut)
Definition: infget.c:289
Status
Definition: gdiplustypes.h:24

◆ 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 
124  Status = InfpGetBinaryField(Context, FieldIndex, ReturnBuffer,
126  if (INF_SUCCESS(Status))
127  {
128  return 0;
129  }
130  else
131  {
132  errno = Status;
133  return -1;
134  }
135 }
#define INF_SUCCESS(x)
Definition: builddep.h:82
INFSTATUS InfpGetBinaryField(PINFCONTEXT Context, ULONG FieldIndex, PUCHAR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infget.c:377
_In_ DWORD _In_ DWORD ReturnBufferSize
Definition: setupapi.h:1892
int errno
int INFSTATUS
Definition: infpriv.h:77
_Inout_ PRTL_BUFFER _In_ SIZE_T RequiredSize
_In_ DWORD FieldIndex
Definition: setupapi.h:1890
Status
Definition: gdiplustypes.h:24

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 }
#define INF_SUCCESS(x)
Definition: builddep.h:82
INFSTATUS InfpGetData(PINFCONTEXT Context, PWCHAR *Key, PWCHAR *Data)
Definition: infget.c:610
int errno
int INFSTATUS
Definition: infpriv.h:77
Status
Definition: gdiplustypes.h:24

◆ 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 }
#define INF_SUCCESS(x)
Definition: builddep.h:82
int errno
INFSTATUS InfpGetDataField(PINFCONTEXT Context, ULONG FieldIndex, PWCHAR *Data)
Definition: infget.c:643
int INFSTATUS
Definition: infpriv.h:77
_In_ DWORD FieldIndex
Definition: setupapi.h:1890
Status
Definition: gdiplustypes.h:24

◆ InfHostGetFieldCount()

LONG InfHostGetFieldCount ( PINFCONTEXT  Context)

Definition at line 109 of file infhostget.c.

110 {
111  return InfpGetFieldCount(Context);
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 }
#define INF_SUCCESS(x)
Definition: builddep.h:82
int errno
int INFSTATUS
Definition: infpriv.h:77
_In_ DWORD FieldIndex
Definition: setupapi.h:1890
Status
Definition: gdiplustypes.h:24
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 
167  Status = InfpGetMultiSzField(Context, FieldIndex, ReturnBuffer,
169  if (INF_SUCCESS(Status))
170  {
171  return 0;
172  }
173  else
174  {
175  errno = Status;
176  return -1;
177  }
178 }
#define INF_SUCCESS(x)
Definition: builddep.h:82
_In_ DWORD _In_ DWORD ReturnBufferSize
Definition: setupapi.h:1892
int errno
int INFSTATUS
Definition: infpriv.h:77
_Inout_ PRTL_BUFFER _In_ SIZE_T RequiredSize
_In_ DWORD FieldIndex
Definition: setupapi.h:1890
INFSTATUS InfpGetMultiSzField(PINFCONTEXT Context, ULONG FieldIndex, PWSTR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infget.c:476
Status
Definition: gdiplustypes.h:24

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 
190  Status = InfpGetStringField(Context, FieldIndex, ReturnBuffer,
192  if (INF_SUCCESS(Status))
193  {
194  return 0;
195  }
196  else
197  {
198  errno = Status;
199  return -1;
200  }
201 }
#define INF_SUCCESS(x)
Definition: builddep.h:82
_In_ DWORD _In_ DWORD ReturnBufferSize
Definition: setupapi.h:1892
int errno
INFSTATUS InfpGetStringField(PINFCONTEXT Context, ULONG FieldIndex, PWSTR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infget.c:545
int INFSTATUS
Definition: infpriv.h:77
_Inout_ PRTL_BUFFER _In_ SIZE_T RequiredSize
_In_ DWORD FieldIndex
Definition: setupapi.h:1890
Status
Definition: gdiplustypes.h:24

Referenced by do_reg_operation(), and registry_callback().