ReactOS 0.4.16-dev-125-g798ea90
infros.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 VOID InfSetHeap(PVOID Heap);
18extern NTSTATUS InfOpenBufferedFile(PHINF InfHandle,
21 LANGID LanguageId,
22 PULONG ErrorLine);
23extern NTSTATUS InfOpenFile(PHINF InfHandle,
25 LANGID LanguageId,
26 PULONG ErrorLine);
27extern NTSTATUS InfWriteFile(HINF InfHandle,
29 PUNICODE_STRING HeaderComment);
30extern VOID InfCloseFile(HINF InfHandle);
31extern BOOLEAN InfFindFirstLine(HINF InfHandle,
32 PCWSTR Section,
33 PCWSTR Key,
35extern BOOLEAN InfFindNextLine(PINFCONTEXT ContextIn,
36 PINFCONTEXT ContextOut);
38 PCWSTR Key,
39 PINFCONTEXT ContextOut);
41 PCWSTR Key,
42 PINFCONTEXT ContextOut);
43extern LONG InfGetLineCount(HINF InfHandle,
44 PCWSTR Section);
48 PUCHAR ReturnBuffer,
53 INT *IntegerValue);
56 PWSTR ReturnBuffer,
61 PWSTR ReturnBuffer,
65 PWCHAR *Key,
66 PWCHAR *Data);
69 PWCHAR *Data);
70extern BOOLEAN InfFindOrAddSection(HINF InfHandle,
71 PCWSTR Section,
76
77#ifdef __cplusplus
78}
79#endif /* __cplusplus */
80
81/* EOF */
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
PULONG * PHINF
Definition: inffile.h:18
Definition: bufpool.h:45
VOID InfSetHeap(PVOID Heap)
Definition: infrosgen.c:40
BOOLEAN InfFindFirstMatchLine(PINFCONTEXT ContextIn, PCWSTR Key, PINFCONTEXT ContextOut)
Definition: infrosget.c:37
BOOLEAN InfGetIntField(PINFCONTEXT Context, ULONG FieldIndex, INT *IntegerValue)
Definition: infrosget.c:85
NTSTATUS InfOpenFile(PHINF InfHandle, PUNICODE_STRING FileName, LANGID LanguageId, PULONG ErrorLine)
Definition: infrosgen.c:161
BOOLEAN InfFindFirstLine(HINF InfHandle, PCWSTR Section, PCWSTR Key, PINFCONTEXT *Context)
Definition: infrosget.c:19
BOOLEAN InfFindNextMatchLine(PINFCONTEXT ContextIn, PCWSTR Key, PINFCONTEXT ContextOut)
Definition: infrosget.c:46
BOOLEAN InfAddLine(PINFCONTEXT Context, PCWSTR Key)
VOID InfFreeContext(PINFCONTEXT Context)
Definition: infrosget.c:135
BOOLEAN InfGetDataField(PINFCONTEXT Context, ULONG FieldIndex, PWCHAR *Data)
Definition: infrosget.c:127
VOID InfCloseFile(HINF InfHandle)
Definition: inffile.c:1028
BOOLEAN InfFindNextLine(PINFCONTEXT ContextIn, PINFCONTEXT ContextOut)
Definition: inffile.c:1107
NTSTATUS InfWriteFile(HINF InfHandle, PUNICODE_STRING FileName, PUNICODE_STRING HeaderComment)
Definition: infrosput.c:16
BOOLEAN InfGetData(PINFCONTEXT Context, PWCHAR *Key, PWCHAR *Data)
Definition: infrosget.c:118
BOOLEAN InfGetBinaryField(PINFCONTEXT Context, ULONG FieldIndex, PUCHAR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: inffile.c:1260
LONG InfGetLineCount(HINF InfHandle, PCWSTR Section)
Definition: infrosget.c:55
LONG InfGetFieldCount(PINFCONTEXT Context)
Definition: inffile.c:1250
BOOLEAN InfGetMultiSzField(PINFCONTEXT Context, ULONG FieldIndex, PWSTR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infrosget.c:94
BOOLEAN InfAddField(PINFCONTEXT Context, PCWSTR Data)
BOOLEAN InfFindOrAddSection(HINF InfHandle, PCWSTR Section, PINFCONTEXT *Context)
Definition: infrosput.c:111
NTSTATUS InfOpenBufferedFile(PHINF InfHandle, PVOID Buffer, ULONG BufferSize, LANGID LanguageId, PULONG ErrorLine)
Definition: infrosgen.c:51
BOOLEAN InfGetStringField(PINFCONTEXT Context, ULONG FieldIndex, PWSTR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize)
Definition: infrosget.c:106
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
uint16_t * PWSTR
Definition: typedefs.h:56
uint32_t * PULONG
Definition: typedefs.h:59
const uint16_t * PCWSTR
Definition: typedefs.h:57
int32_t INT
Definition: typedefs.h:58
uint16_t * PWCHAR
Definition: typedefs.h:56
unsigned char * PUCHAR
Definition: typedefs.h:53
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