Go to the source code of this file.
|
BOOLEAN | InfOpenFile (PHINF InfHandle, PCSTR FileName, PULONG ErrorLine) |
|
VOID | InfCloseFile (HINF InfHandle) |
|
BOOLEAN | InfFindFirstLine (HINF InfHandle, PCSTR Section, PCSTR Key, PINFCONTEXT Context) |
|
BOOLEAN | InfFindNextLine (PINFCONTEXT ContextIn, PINFCONTEXT ContextOut) |
|
BOOLEAN | InfFindFirstMatchLine (PINFCONTEXT ContextIn, PCSTR Key, PINFCONTEXT ContextOut) |
|
BOOLEAN | InfFindNextMatchLine (PINFCONTEXT ContextIn, PCSTR Key, PINFCONTEXT ContextOut) |
|
LONG | InfGetLineCount (HINF InfHandle, PCSTR Section) |
|
LONG | InfGetFieldCount (PINFCONTEXT Context) |
|
BOOLEAN | InfGetBinaryField (PINFCONTEXT Context, ULONG FieldIndex, PUCHAR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize) |
|
BOOLEAN | InfGetIntField (PINFCONTEXT Context, ULONG FieldIndex, LONG *IntegerValue) |
|
BOOLEAN | InfGetMultiSzField (PINFCONTEXT Context, ULONG FieldIndex, PCHAR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize) |
|
BOOLEAN | InfGetStringField (PINFCONTEXT Context, ULONG FieldIndex, PCHAR ReturnBuffer, ULONG ReturnBufferSize, PULONG RequiredSize) |
|
BOOLEAN | InfGetData (PINFCONTEXT Context, PCSTR *Key, PCSTR *Data) |
|
BOOLEAN | InfGetDataField (PINFCONTEXT Context, ULONG FieldIndex, PCSTR *Data) |
|
◆ MAX_INF_STRING_LENGTH
#define MAX_INF_STRING_LENGTH 512 |
◆ STATUS_BAD_SECTION_NAME_LINE
#define STATUS_BAD_SECTION_NAME_LINE (0xC0700001) |
◆ STATUS_NOT_ENOUGH_MEMORY
#define STATUS_NOT_ENOUGH_MEMORY (0xC0700004) |
◆ STATUS_SECTION_NAME_TOO_LONG
#define STATUS_SECTION_NAME_TOO_LONG (0xC0700002) |
◆ STATUS_WRONG_INF_STYLE
#define STATUS_WRONG_INF_STYLE (0xC0700003) |
◆ HINF
◆ INFCONTEXT
◆ PHINF
◆ PINFCONTEXT
◆ InfCloseFile()
Definition at line 1028 of file inffile.c.
struct _INFCACHE * PINFCACHE
static PINFCACHESECTION InfpCacheFreeSection(PINFCACHESECTION Section)
FORCEINLINE VOID FrLdrTempFree(PVOID Allocation, ULONG Tag)
◆ InfFindFirstLine()
◆ InfFindFirstMatchLine()
Definition at line 1135 of file inffile.c.
1149 while (CacheLine !=
NULL)
1154 if (ContextIn != ContextOut)
1156 ContextOut->
Inf = ContextIn->
Inf;
1164 CacheLine = CacheLine->
Next;
struct _INFCACHESECTION * PINFCACHESECTION
struct _INFCACHELINE * Next
◆ InfFindNextLine()
Definition at line 1107 of file inffile.c.
1113 if ((ContextIn ==
NULL) || (ContextOut ==
NULL))
1123 if (ContextIn != ContextOut)
1125 ContextOut->
Inf = ContextIn->
Inf;
struct _INFCACHELINE * PINFCACHELINE
struct _INFCACHELINE * Next
◆ InfFindNextMatchLine()
Definition at line 1172 of file inffile.c.
1191 if (ContextIn != ContextOut)
1193 ContextOut->
Inf = ContextIn->
Inf;
1201 CacheLine = CacheLine->
Next;
while(CdLookupNextInitialFileDirent(IrpContext, Fcb, FileContext))
struct _INFCACHELINE * PINFCACHELINE
struct _INFCACHELINE * Next
◆ InfGetBinaryField()
Definition at line 1260 of file inffile.c.
1289 CacheField = CacheField->
Next;
1296 if (ReturnBuffer !=
NULL)
1303 while (CacheField !=
NULL)
1308 CacheField = CacheField->
Next;
struct _INFCACHELINE * PINFCACHELINE
struct _INFCACHEFIELD * Next
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
IN PVOID IN PVOID IN USHORT IN USHORT Size
_In_ DWORD _In_ DWORD ReturnBufferSize
PINFCACHEFIELD FirstField
_In_ WDFCOLLECTION _In_ ULONG Index
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID _Out_ PULONG RequiredSize
◆ InfGetData()
◆ InfGetDataField()
Definition at line 1515 of file inffile.c.
1543 CacheField = CacheField->
Next;
struct _INFCACHELINE * PINFCACHELINE
struct _INFCACHEFIELD * Next
PINFCACHEFIELD FirstField
_In_ WDFCOLLECTION _In_ ULONG Index
◆ InfGetFieldCount()
◆ InfGetIntField()
◆ InfGetLineCount()
Definition at line 1209 of file inffile.c.
1216 if ((InfHandle ==
NULL) || (Section ==
NULL))
1225 CacheSection =
Cache->FirstSection;
1226 while (CacheSection !=
NULL)
1237 CacheSection = CacheSection->
Next;
struct _INFCACHESECTION * Next
struct _INFCACHE * PINFCACHE
◆ InfGetMultiSzField()
Definition at line 1361 of file inffile.c.
1391 CacheField = CacheField->
Next;
1394 FieldPtr = CacheField;
1399 FieldPtr = FieldPtr->
Next;
1406 if (ReturnBuffer !=
NULL)
1413 FieldPtr = CacheField;
1414 while (FieldPtr !=
NULL)
1421 FieldPtr = FieldPtr->
Next;
while(CdLookupNextInitialFileDirent(IrpContext, Fcb, FileContext))
ACPI_SIZE strlen(const char *String)
struct _INFCACHELINE * PINFCACHELINE
struct _INFCACHEFIELD * Next
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
IN PVOID IN PVOID IN USHORT IN USHORT Size
_In_ DWORD _In_ DWORD ReturnBufferSize
PINFCACHEFIELD FirstField
_In_ WDFCOLLECTION _In_ ULONG Index
char * strcpy(char *DstString, const char *SrcString)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID _Out_ PULONG RequiredSize
◆ InfGetStringField()
Definition at line 1431 of file inffile.c.
1466 CacheField = CacheField->
Next;
1476 if (ReturnBuffer !=
NULL)
ACPI_SIZE strlen(const char *String)
struct _INFCACHELINE * PINFCACHELINE
struct _INFCACHEFIELD * Next
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
IN PVOID IN PVOID IN USHORT IN USHORT Size
_In_ DWORD _In_ DWORD ReturnBufferSize
PINFCACHEFIELD FirstField
_In_ WDFCOLLECTION _In_ ULONG Index
char * strcpy(char *DstString, const char *SrcString)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID _Out_ PULONG RequiredSize
◆ InfOpenFile()
Definition at line 918 of file inffile.c.
932 *ErrorLine = (
ULONG) - 1;
_In_ WDFREQUEST _In_ NTSTATUS _In_ ULONG_PTR Information
FORCEINLINE PVOID FrLdrTempAlloc(_In_ SIZE_T Size, _In_ ULONG Tag)
struct _INFCACHE * PINFCACHE
ARC_STATUS ArcRead(ULONG FileId, VOID *Buffer, ULONG N, ULONG *Count)
_Must_inspect_result_ _Out_ PLARGE_INTEGER FileSize
ARC_STATUS ArcClose(ULONG FileId)
ARC_STATUS ArcGetFileInformation(ULONG FileId, FILEINFORMATION *Information)
ARC_STATUS ArcOpen(CHAR *Path, OPENMODE OpenMode, ULONG *FileId)
#define RtlZeroMemory(Destination, Length)
static BOOLEAN InfpParseBuffer(PINFCACHE file, PCCHAR buffer, PCCHAR end, PULONG error_line)
FORCEINLINE VOID FrLdrTempFree(PVOID Allocation, ULONG Tag)
Referenced by LoadReactOSSetup(), and SetupOpenInfFileExW().