ReactOS 0.4.15-dev-8207-gd73a838
infhost.h
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#pragma once
10
11#ifdef __cplusplus
12extern "C" {
13#endif /* __cplusplus */
14
15#include "infcommon.h"
16
17extern int InfHostOpenBufferedFile(PHINF InfHandle,
18 void *Buffer,
20 LANGID LanguageId,
21 ULONG *ErrorLine);
22extern int InfHostOpenFile(PHINF InfHandle,
23 const CHAR *FileName,
24 LANGID LanguageId,
25 ULONG *ErrorLine);
26extern int InfHostWriteFile(HINF InfHandle,
27 const CHAR *FileName,
28 const CHAR *HeaderComment);
29extern void InfHostCloseFile(HINF InfHandle);
30extern int InfHostFindFirstLine(HINF InfHandle,
31 const WCHAR *Section,
32 const WCHAR *Key,
34extern int InfHostFindNextLine(PINFCONTEXT ContextIn,
35 PINFCONTEXT ContextOut);
36extern int InfHostFindFirstMatchLine(PINFCONTEXT ContextIn,
37 const WCHAR *Key,
38 PINFCONTEXT ContextOut);
39extern int InfHostFindNextMatchLine(PINFCONTEXT ContextIn,
40 const WCHAR *Key,
41 PINFCONTEXT ContextOut);
42extern LONG InfHostGetLineCount(HINF InfHandle,
43 const WCHAR *Section);
47 UCHAR *ReturnBuffer,
52 INT *IntegerValue);
55 WCHAR *ReturnBuffer,
60 WCHAR *ReturnBuffer,
64 WCHAR **Key,
65 WCHAR **Data);
68 WCHAR **Data);
69extern int InfHostFindOrAddSection(HINF InfHandle,
70 const WCHAR *Section,
72extern int InfHostAddLine(PINFCONTEXT Context, const WCHAR *Key);
73extern int InfHostAddField(PINFCONTEXT Context, const WCHAR *Data);
75
76#ifdef __cplusplus
77}
78#endif /* __cplusplus */
79
80/* EOF */
PULONG * PHINF
Definition: inffile.h:18
Definition: bufpool.h:45
int InfHostOpenFile(PHINF InfHandle, const CHAR *FileName, LANGID LanguageId, ULONG *ErrorLine)
Definition: infhostgen.c:128
int InfHostFindNextLine(PINFCONTEXT ContextIn, PINFCONTEXT ContextOut)
Definition: infhostget.c:39
LONG InfHostGetLineCount(HINF InfHandle, const WCHAR *Section)
int InfHostFindFirstLine(HINF InfHandle, const WCHAR *Section, const WCHAR *Key, PINFCONTEXT *Context)
Definition: infhostget.c:18
int InfHostWriteFile(HINF InfHandle, const CHAR *FileName, const CHAR *HeaderComment)
Definition: infhostput.c:16
int InfHostGetDataField(PINFCONTEXT Context, ULONG FieldIndex, WCHAR **Data)
Definition: infhostget.c:225
int InfHostFindFirstMatchLine(PINFCONTEXT ContextIn, const WCHAR *Key, PINFCONTEXT ContextOut)
Definition: infhostget.c:58
int InfHostGetData(PINFCONTEXT Context, WCHAR **Key, WCHAR **Data)
Definition: infhostget.c:205
int InfHostGetIntField(PINFCONTEXT Context, ULONG FieldIndex, INT *IntegerValue)
Definition: infhostget.c:139
int InfHostAddField(PINFCONTEXT Context, const WCHAR *Data)
Definition: infhostput.c:99
int InfHostGetMultiSzField(PINFCONTEXT Context, ULONG FieldIndex, WCHAR *ReturnBuffer, ULONG ReturnBufferSize, ULONG *RequiredSize)
Definition: infhostget.c:159
int InfHostFindNextMatchLine(PINFCONTEXT ContextIn, const WCHAR *Key, PINFCONTEXT ContextOut)
Definition: infhostget.c:78
int InfHostFindOrAddSection(HINF InfHandle, const WCHAR *Section, PINFCONTEXT *Context)
Definition: infhostput.c:63
int InfHostAddLine(PINFCONTEXT Context, const WCHAR *Key)
Definition: infhostput.c:82
int InfHostGetBinaryField(PINFCONTEXT Context, ULONG FieldIndex, UCHAR *ReturnBuffer, ULONG ReturnBufferSize, ULONG *RequiredSize)
Definition: infhostget.c:116
int InfHostOpenBufferedFile(PHINF InfHandle, void *Buffer, ULONG BufferSize, LANGID LanguageId, ULONG *ErrorLine)
Definition: infhostgen.c:20
int InfHostGetStringField(PINFCONTEXT Context, ULONG FieldIndex, WCHAR *ReturnBuffer, ULONG ReturnBufferSize, ULONG *RequiredSize)
Definition: infhostget.c:182
LONG InfHostGetFieldCount(PINFCONTEXT Context)
Definition: infhostget.c:109
void InfHostCloseFile(HINF InfHandle)
Definition: infhostgen.c:283
void InfHostFreeContext(PINFCONTEXT Context)
Definition: infhostget.c:244
USHORT LANGID
Definition: mui.h:9
long LONG
Definition: pedump.c:60
_In_ DWORD FieldIndex
Definition: setupapi.h:1895
_In_ DWORD _In_ DWORD ReturnBufferSize
Definition: setupapi.h:1897
int32_t INT
Definition: typedefs.h:58
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
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:254
unsigned char UCHAR
Definition: xmlstorage.h:181
__wchar_t WCHAR
Definition: xmlstorage.h:180
char CHAR
Definition: xmlstorage.h:175