[USETUP]
[reactos.git] / reactos / base / setup / usetup / inffile.c
index 80019cf..0bbde01 100644 (file)
@@ -12,9 +12,9 @@
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
  *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *  You should have received a copy of the GNU General Public License along
+ *  with this program; if not, write to the Free Software Foundation, Inc.,
+ *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 /*
  * COPYRIGHT:       See COPYING in the top level directory
@@ -76,10 +76,10 @@ InfpFindNextLine(
 BOOL WINAPI
 InfpGetBinaryField(
        IN PINFCONTEXT Context,
-       IN DWORD FieldIndex,
+    IN ULONG FieldIndex,
        IN OUT BYTE* ReturnBuffer,
-       IN DWORD ReturnBufferSize,
-       OUT LPDWORD RequiredSize)
+       IN ULONG ReturnBufferSize,
+       OUT PULONG RequiredSize)
 {
        return InfGetBinaryField(Context, FieldIndex, ReturnBuffer, ReturnBufferSize, RequiredSize);
 }
@@ -108,10 +108,10 @@ InfpGetIntField(
 BOOL WINAPI
 InfpGetMultiSzFieldW(
        IN PINFCONTEXT Context,
-       IN DWORD FieldIndex,
+       IN ULONG FieldIndex,
        IN OUT PWSTR ReturnBuffer,
-       IN DWORD ReturnBufferSize,
-       OUT LPDWORD RequiredSize)
+       IN ULONG ReturnBufferSize,
+       OUT PULONG RequiredSize)
 {
        return InfGetMultiSzField(Context, FieldIndex, ReturnBuffer, ReturnBufferSize, RequiredSize);
 }
@@ -119,10 +119,10 @@ InfpGetMultiSzFieldW(
 BOOL WINAPI
 InfpGetStringFieldW(
        IN PINFCONTEXT Context,
-       IN DWORD FieldIndex,
+       IN ULONG FieldIndex,
        IN OUT PWSTR ReturnBuffer,
-       IN DWORD ReturnBufferSize,
-       OUT PDWORD RequiredSize)
+       IN ULONG ReturnBufferSize,
+       OUT PULONG RequiredSize)
 {
        return InfGetStringField(Context, FieldIndex, ReturnBuffer, ReturnBufferSize, RequiredSize);
 }
@@ -132,6 +132,7 @@ InfpOpenInfFileW(
        IN PCWSTR FileName,
        IN PCWSTR InfClass,
        IN DWORD InfStyle,
+       IN LCID LocaleId,
        OUT PUINT ErrorLine)
 {
        HINF hInf = NULL;
@@ -143,6 +144,7 @@ InfpOpenInfFileW(
        Status = InfOpenFile(
                &hInf,
                &FileNameU,
+               LocaleId,
                &ErrorLineUL);
        *ErrorLine = (UINT)ErrorLineUL;
        if (!NT_SUCCESS(Status))
@@ -252,6 +254,7 @@ INF_OpenBufferedFileA(
        IN ULONG FileSize,
        IN PCSTR InfClass,
        IN DWORD InfStyle,
+       IN LCID LocaleId,
        OUT PUINT ErrorLine)
 {
 #ifdef __REACTOS__
@@ -263,6 +266,7 @@ INF_OpenBufferedFileA(
                &hInf,
                FileBuffer,
                FileSize,
+               LocaleId,
                &ErrorLineUL);
        *ErrorLine = (UINT)ErrorLineUL;
        if (!NT_SUCCESS(Status))