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

infhost.h
Go to the documentation of this file.
00001 /*
00002  * PROJECT:    .inf file parser
00003  * LICENSE:    GPL - See COPYING in the top level directory
00004  * PROGRAMMER: Royce Mitchell III
00005  *             Eric Kohl
00006  *             Ge van Geldorp <gvg@reactos.org>
00007  */
00008 
00009 #pragma once
00010 
00011 #ifdef __cplusplus
00012 extern "C" {
00013 #endif /* __cplusplus */
00014 
00015 #include "infcommon.h"
00016 
00017 extern int InfHostOpenBufferedFile(PHINF InfHandle,
00018                                    void *Buffer,
00019                                    ULONG BufferSize,
00020                                    ULONG *ErrorLine);
00021 extern int InfHostOpenFile(PHINF InfHandle,
00022                            const CHAR *FileName,
00023                            ULONG *ErrorLine);
00024 extern int InfHostWriteFile(HINF InfHandle,
00025                             const CHAR *FileName,
00026                             const CHAR *HeaderComment);
00027 extern void InfHostCloseFile(HINF InfHandle);
00028 extern int InfHostFindFirstLine(HINF InfHandle,
00029                                 const CHAR *Section,
00030                                 const CHAR *Key,
00031                                 PINFCONTEXT *Context);
00032 extern int InfHostFindNextLine(PINFCONTEXT ContextIn,
00033                                PINFCONTEXT ContextOut);
00034 extern int InfHostFindFirstMatchLine(PINFCONTEXT ContextIn,
00035                                      const CHAR *Key,
00036                                      PINFCONTEXT ContextOut);
00037 extern int InfHostFindNextMatchLine(PINFCONTEXT ContextIn,
00038                                     const CHAR *Key,
00039                                     PINFCONTEXT ContextOut);
00040 extern LONG InfHostGetLineCount(HINF InfHandle,
00041                                 const CHAR *Section);
00042 extern LONG InfHostGetFieldCount(PINFCONTEXT Context);
00043 extern int InfHostGetBinaryField(PINFCONTEXT Context,
00044                                  ULONG FieldIndex,
00045                                  UCHAR *ReturnBuffer,
00046                                  ULONG ReturnBufferSize,
00047                                  ULONG *RequiredSize);
00048 extern int InfHostGetIntField(PINFCONTEXT Context,
00049                               ULONG FieldIndex,
00050                               ULONG *IntegerValue);
00051 extern int InfHostGetMultiSzField(PINFCONTEXT Context,
00052                                   ULONG FieldIndex,
00053                                   CHAR *ReturnBuffer,
00054                                   ULONG ReturnBufferSize,
00055                                   ULONG *RequiredSize);
00056 extern int InfHostGetStringField(PINFCONTEXT Context,
00057                                  ULONG FieldIndex,
00058                                  CHAR *ReturnBuffer,
00059                                  ULONG ReturnBufferSize,
00060                                  ULONG *RequiredSize);
00061 extern int InfHostGetData(PINFCONTEXT Context,
00062                           CHAR **Key,
00063                           CHAR **Data);
00064 extern int InfHostGetDataField(PINFCONTEXT Context,
00065                                ULONG FieldIndex,
00066                                CHAR **Data);
00067 extern int InfHostFindOrAddSection(HINF InfHandle,
00068                                    const CHAR *Section,
00069                                    PINFCONTEXT *Context);
00070 extern int InfHostAddLine(PINFCONTEXT Context, const CHAR *Key);
00071 extern int InfHostAddField(PINFCONTEXT Context, const CHAR *Data);
00072 extern void InfHostFreeContext(PINFCONTEXT Context);
00073 
00074 #ifdef __cplusplus
00075 }
00076 #endif /* __cplusplus */
00077 
00078 /* EOF */

Generated on Sat May 26 2012 04:35:14 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.