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 /* INCLUDES *****************************************************************/ 10 11 #include "inflib.h" 12 #include "infros.h" 13 14 #define NDEBUG 15 #include <debug.h> 16 17 18 BOOLEAN 19 InfFindFirstLine(HINF InfHandle, 20 PCWSTR Section, 21 PCWSTR Key, 22 PINFCONTEXT *Context) 23 { 24 return INF_SUCCESS(InfpFindFirstLine(InfHandle, Section, Key, Context)); 25 } 26 27 28 BOOLEAN 29 InfFindNextLine(PINFCONTEXT ContextIn, 30 PINFCONTEXT ContextOut) 31 { 32 return INF_SUCCESS(InfpFindNextLine(ContextIn, ContextOut)); 33 } 34 35 36 BOOLEAN 37 InfFindFirstMatchLine(PINFCONTEXT ContextIn, 38 PCWSTR Key, 39 PINFCONTEXT ContextOut) 40 { 41 return INF_SUCCESS(InfpFindFirstMatchLine(ContextIn, Key, ContextOut)); 42 } 43 44 45 BOOLEAN 46 InfFindNextMatchLine(PINFCONTEXT ContextIn, 47 PCWSTR Key, 48 PINFCONTEXT ContextOut) 49 { 50 return INF_SUCCESS(InfpFindNextMatchLine(ContextIn, Key, ContextOut)); 51 } 52 53 54 LONG 55 InfGetLineCount(HINF InfHandle, 56 PCWSTR Section) 57 { 58 return InfpGetLineCount(InfHandle, Section); 59 } 60 61 62 /* InfGetLineText */ 63 64 65 LONG 66 InfGetFieldCount(PINFCONTEXT Context) 67 { 68 return InfpGetFieldCount(Context); 69 } 70 71 72 BOOLEAN 73 InfGetBinaryField(PINFCONTEXT Context, 74 ULONG FieldIndex, 75 PUCHAR ReturnBuffer, 76 ULONG ReturnBufferSize, 77 PULONG RequiredSize) 78 { 79 return INF_SUCCESS(InfpGetBinaryField(Context, FieldIndex, ReturnBuffer, 80 ReturnBufferSize, RequiredSize)); 81 } 82 83 84 BOOLEAN 85 InfGetIntField(PINFCONTEXT Context, 86 ULONG FieldIndex, 87 INT *IntegerValue) 88 { 89 return INF_SUCCESS(InfpGetIntField(Context, FieldIndex, IntegerValue)); 90 } 91 92 93 BOOLEAN 94 InfGetMultiSzField(PINFCONTEXT Context, 95 ULONG FieldIndex, 96 PWSTR ReturnBuffer, 97 ULONG ReturnBufferSize, 98 PULONG RequiredSize) 99 { 100 return INF_SUCCESS(InfpGetMultiSzField(Context, FieldIndex, ReturnBuffer, 101 ReturnBufferSize, RequiredSize)); 102 } 103 104 105 BOOLEAN 106 InfGetStringField(PINFCONTEXT Context, 107 ULONG FieldIndex, 108 PWSTR ReturnBuffer, 109 ULONG ReturnBufferSize, 110 PULONG RequiredSize) 111 { 112 return INF_SUCCESS(InfpGetStringField(Context, FieldIndex, ReturnBuffer, 113 ReturnBufferSize, RequiredSize)); 114 } 115 116 117 BOOLEAN 118 InfGetData(PINFCONTEXT Context, 119 PWCHAR *Key, 120 PWCHAR *Data) 121 { 122 return INF_SUCCESS(InfpGetData(Context, Key, Data)); 123 } 124 125 126 BOOLEAN 127 InfGetDataField (PINFCONTEXT Context, 128 ULONG FieldIndex, 129 PWCHAR *Data) 130 { 131 return INF_SUCCESS(InfpGetDataField(Context, FieldIndex, Data)); 132 } 133 134 VOID 135 InfFreeContext(PINFCONTEXT Context) 136 { 137 InfpFreeContext(Context); 138 } 139 140 /* EOF */ 141