[USETUP]
[reactos.git] / reactos / base / setup / usetup / inffile.c
index 356cc90..0bbde01 100644 (file)
@@ -65,6 +65,46 @@ InfpFindFirstLineW(
        return TRUE;
 }
 
+BOOL WINAPI
+InfpFindNextLine(
+       IN PINFCONTEXT ContextIn,
+       OUT PINFCONTEXT ContextOut)
+{
+       return InfFindNextLine(ContextIn, ContextOut);
+}
+
+BOOL WINAPI
+InfpGetBinaryField(
+       IN PINFCONTEXT Context,
+    IN ULONG FieldIndex,
+       IN OUT BYTE* ReturnBuffer,
+       IN ULONG ReturnBufferSize,
+       OUT PULONG RequiredSize)
+{
+       return InfGetBinaryField(Context, FieldIndex, ReturnBuffer, ReturnBufferSize, RequiredSize);
+}
+
+DWORD WINAPI
+InfpGetFieldCount(
+       IN PINFCONTEXT Context)
+{
+       return (DWORD)InfGetFieldCount(Context);
+}
+
+BOOL WINAPI
+InfpGetIntField(
+       IN PINFCONTEXT Context,
+       IN DWORD FieldIndex,
+       OUT PINT IntegerValue)
+{
+       LONG IntegerValueL;
+       BOOL ret;
+
+       ret = InfGetIntField(Context, FieldIndex, &IntegerValueL);
+       *IntegerValue = (INT)IntegerValueL;
+       return ret;
+}
+
 BOOL WINAPI
 InfpGetMultiSzFieldW(
        IN PINFCONTEXT Context,
@@ -92,6 +132,7 @@ InfpOpenInfFileW(
        IN PCWSTR FileName,
        IN PCWSTR InfClass,
        IN DWORD InfStyle,
+       IN LCID LocaleId,
        OUT PUINT ErrorLine)
 {
        HINF hInf = NULL;
@@ -103,6 +144,7 @@ InfpOpenInfFileW(
        Status = InfOpenFile(
                &hInf,
                &FileNameU,
+               LocaleId,
                &ErrorLineUL);
        *ErrorLine = (UINT)ErrorLineUL;
        if (!NT_SUCCESS(Status))
@@ -212,6 +254,7 @@ INF_OpenBufferedFileA(
        IN ULONG FileSize,
        IN PCSTR InfClass,
        IN DWORD InfStyle,
+       IN LCID LocaleId,
        OUT PUINT ErrorLine)
 {
 #ifdef __REACTOS__
@@ -223,6 +266,7 @@ INF_OpenBufferedFileA(
                &hInf,
                FileBuffer,
                FileSize,
+               LocaleId,
                &ErrorLineUL);
        *ErrorLine = (UINT)ErrorLineUL;
        if (!NT_SUCCESS(Status))