mirror of
https://github.com/reactos/reactos.git
synced 2024-11-07 07:00:19 +00:00
8db8073cbb
svn path=/branches/shell-experiments/; revision=63271
93 lines
2.2 KiB
C
93 lines
2.2 KiB
C
/*
|
|
* ReactOS kernel
|
|
* Copyright (C) 2002 ReactOS Team
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* 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.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS text-mode setup
|
|
* FILE: subsys/system/usetup/inffile.h
|
|
* PURPOSE: .inf files support functions
|
|
* PROGRAMMER: Hervé Poussineau
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifndef __REACTOS__
|
|
|
|
#include <setupapi.h>
|
|
|
|
#else /* __REACTOS__ */
|
|
|
|
#include <infcommon.h>
|
|
|
|
#define SetupFindFirstLineW InfpFindFirstLineW
|
|
#define SetupGetFieldCount InfGetFieldCount
|
|
#define SetupGetIntField InfGetIntField
|
|
#define SetupOpenInfFileW InfpOpenInfFileW
|
|
|
|
#define INF_STYLE_WIN4 0x00000002
|
|
|
|
/* FIXME: this structure is the one used in inflib, not in setupapi
|
|
* Delete it once we don't use inflib anymore */
|
|
typedef struct _INFCONTEXT
|
|
{
|
|
PVOID Inf;
|
|
PVOID Section;
|
|
PVOID Line;
|
|
} INFCONTEXT;
|
|
|
|
BOOL
|
|
WINAPI
|
|
InfpFindFirstLineW(
|
|
IN HINF InfHandle,
|
|
IN PCWSTR Section,
|
|
IN PCWSTR Key,
|
|
IN OUT PINFCONTEXT Context);
|
|
|
|
HINF
|
|
WINAPI
|
|
InfpOpenInfFileW(
|
|
IN PCWSTR FileName,
|
|
IN PCWSTR InfClass,
|
|
IN DWORD InfStyle,
|
|
IN LCID LocaleId,
|
|
OUT PUINT ErrorLine);
|
|
|
|
#endif /* __REACTOS__ */
|
|
|
|
BOOLEAN
|
|
INF_GetData(
|
|
IN PINFCONTEXT Context,
|
|
OUT PWCHAR *Key,
|
|
OUT PWCHAR *Data);
|
|
|
|
BOOLEAN
|
|
INF_GetDataField(
|
|
IN PINFCONTEXT Context,
|
|
IN ULONG FieldIndex,
|
|
OUT PWCHAR *Data);
|
|
|
|
HINF WINAPI
|
|
INF_OpenBufferedFileA(
|
|
IN PSTR FileBuffer,
|
|
IN ULONG FileSize,
|
|
IN PCSTR InfClass,
|
|
IN DWORD InfStyle,
|
|
IN LCID LocaleId,
|
|
OUT PUINT ErrorLine);
|
|
|
|
/* EOF */
|