ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

inffile.h
Go to the documentation of this file.
00001 /*
00002  *  ReactOS kernel
00003  *  Copyright (C) 2002 ReactOS Team
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License along
00016  *  with this program; if not, write to the Free Software Foundation, Inc.,
00017  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00018  */
00019 /*
00020  * COPYRIGHT:       See COPYING in the top level directory
00021  * PROJECT:         ReactOS text-mode setup
00022  * FILE:            subsys/system/usetup/inffile.h
00023  * PURPOSE:         .inf files support functions
00024  * PROGRAMMER:      Hervé Poussineau
00025  */
00026 
00027 #pragma once
00028 
00029 #ifndef __REACTOS__
00030 
00031 #include <setupapi.h>
00032 
00033 #else /* __REACTOS__ */
00034 
00035 #include <infcommon.h>
00036 
00037 #define SetupFindFirstLineW InfpFindFirstLineW
00038 #define SetupGetFieldCount InfGetFieldCount
00039 #define SetupGetIntField InfGetIntField
00040 #define SetupOpenInfFileW InfpOpenInfFileW
00041 
00042 #define INF_STYLE_WIN4 0x00000002
00043 
00044 /* FIXME: this structure is the one used in inflib, not in setupapi
00045  * Delete it once we don't use inflib anymore */
00046 typedef struct _INFCONTEXT
00047 {
00048     PVOID Inf;
00049     PVOID Section;
00050     PVOID Line;
00051 } INFCONTEXT;
00052 
00053 BOOL WINAPI
00054 InfpFindFirstLineW(
00055     IN HINF InfHandle,
00056     IN PCWSTR Section,
00057     IN PCWSTR Key,
00058     IN OUT PINFCONTEXT Context);
00059 
00060 HINF WINAPI
00061 InfpOpenInfFileW(
00062     IN PCWSTR FileName,
00063     IN PCWSTR InfClass,
00064     IN DWORD InfStyle,
00065     IN LCID LocaleId,
00066     OUT PUINT ErrorLine);
00067 
00068 #endif /* __REACTOS__ */
00069 
00070 BOOLEAN
00071 INF_GetData(
00072     IN PINFCONTEXT Context,
00073     OUT PWCHAR *Key,
00074     OUT PWCHAR *Data);
00075 
00076 BOOLEAN
00077 INF_GetDataField(
00078     IN PINFCONTEXT Context,
00079     IN ULONG FieldIndex,
00080     OUT PWCHAR *Data);
00081 
00082 HINF WINAPI
00083 INF_OpenBufferedFileA(
00084     IN PSTR FileBuffer,
00085     IN ULONG FileSize,
00086     IN PCSTR InfClass,
00087     IN DWORD InfStyle,
00088     IN LCID LocaleId,
00089     OUT PUINT ErrorLine);
00090 
00091 /* EOF */

Generated on Sun May 27 2012 04:17:59 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.