3 * Copyright (C) 2002 ReactOS Team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 * COPYRIGHT: See COPYING in the top level directory
21 * PROJECT: ReactOS text-mode setup
22 * FILE: subsys/system/usetup/inffile.h
23 * PURPOSE: .inf files support functions
24 * PROGRAMMER: Hervé Poussineau
30 #include <infcommon.h>
32 #define SetupCloseInfFile InfpCloseInfFile
33 #define SetupFindFirstLineW InfpFindFirstLineW
34 #define SetupFindNextLine InfpFindNextLine
35 #define SetupGetBinaryField InfpGetBinaryField
36 #define SetupGetFieldCount InfpGetFieldCount
37 #define SetupGetIntField InfpGetIntField
38 #define SetupGetMultiSzFieldW InfpGetMultiSzFieldW
39 #define SetupGetStringFieldW InfpGetStringFieldW
40 #define SetupOpenInfFileW InfpOpenInfFileW
42 #define INF_STYLE_WIN4 0x00000002
44 /* FIXME: this structure is the one used in inflib, not in setupapi
45 * Delete it once we don't use inflib anymore */
46 typedef struct _INFCONTEXT
62 IN OUT PINFCONTEXT Context
);
66 IN PINFCONTEXT ContextIn
,
67 OUT PINFCONTEXT ContextOut
);
71 IN PINFCONTEXT Context
,
73 IN OUT BYTE
* ReturnBuffer
,
74 IN DWORD ReturnBufferSize
,
75 OUT LPDWORD RequiredSize
);
79 IN PINFCONTEXT Context
);
83 IN PINFCONTEXT Context
,
85 OUT PINT IntegerValue
);
89 IN PINFCONTEXT Context
,
91 IN OUT PWSTR ReturnBuffer
,
92 IN DWORD ReturnBufferSize
,
93 OUT LPDWORD RequiredSize
);
97 IN PINFCONTEXT Context
,
99 IN OUT PWSTR ReturnBuffer
,
100 IN DWORD ReturnBufferSize
,
101 OUT PDWORD RequiredSize
);
108 OUT PUINT ErrorLine
);
112 IN PINFCONTEXT Context
,
118 IN PINFCONTEXT Context
,
123 INF_OpenBufferedFileA(
128 OUT PUINT ErrorLine
);
133 #endif /* __INFFILE_H__*/