2 * PROJECT: .inf file parser
3 * LICENSE: GPL - See COPYING in the top level directory
4 * PROGRAMMER: Royce Mitchell III
6 * Ge van Geldorp <gvg@reactos.org>
13 #endif /* __cplusplus */
15 #include <infcommon.h>
17 extern VOID
InfSetHeap(PVOID Heap
);
18 extern NTSTATUS
InfOpenBufferedFile(PHINF InfHandle
,
22 extern NTSTATUS
InfOpenFile(PHINF InfHandle
,
23 PUNICODE_STRING FileName
,
25 extern NTSTATUS
InfWriteFile(HINF InfHandle
,
26 PUNICODE_STRING FileName
,
27 PUNICODE_STRING HeaderComment
);
28 extern VOID
InfCloseFile(HINF InfHandle
);
29 extern BOOLEAN
InfFindFirstLine(HINF InfHandle
,
32 PINFCONTEXT
*Context
);
33 extern BOOLEAN
InfFindNextLine(PINFCONTEXT ContextIn
,
34 PINFCONTEXT ContextOut
);
35 extern BOOLEAN
InfFindFirstMatchLine(PINFCONTEXT ContextIn
,
37 PINFCONTEXT ContextOut
);
38 extern BOOLEAN
InfFindNextMatchLine(PINFCONTEXT ContextIn
,
40 PINFCONTEXT ContextOut
);
41 extern LONG
InfGetLineCount(HINF InfHandle
,
43 extern LONG
InfGetFieldCount(PINFCONTEXT Context
);
44 extern BOOLEAN
InfGetBinaryField(PINFCONTEXT Context
,
47 ULONG ReturnBufferSize
,
49 extern BOOLEAN
InfGetIntField(PINFCONTEXT Context
,
52 extern BOOLEAN
InfGetMultiSzField(PINFCONTEXT Context
,
55 ULONG ReturnBufferSize
,
57 extern BOOLEAN
InfGetStringField(PINFCONTEXT Context
,
60 ULONG ReturnBufferSize
,
62 extern BOOLEAN
InfGetData(PINFCONTEXT Context
,
65 extern BOOLEAN
InfGetDataField(PINFCONTEXT Context
,
68 extern BOOLEAN
InfFindOrAddSection(HINF InfHandle
,
70 PINFCONTEXT
*Context
);
71 extern BOOLEAN
InfAddLine(PINFCONTEXT Context
, PCWSTR Key
);
72 extern BOOLEAN
InfAddField(PINFCONTEXT Context
, PCWSTR Data
);
73 extern VOID
InfFreeContext(PINFCONTEXT Context
);
77 #endif /* __cplusplus */