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

registry.h
Go to the documentation of this file.
00001 /*
00002  *  FreeLoader - registry.h
00003  *
00004  *  Copyright (C) 2001  Eric Kohl
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License along
00017  *  with this program; if not, write to the Free Software Foundation, Inc.,
00018  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00019  */
00020 
00021 #ifndef __REGISTRY_H
00022 #define __REGISTRY_H
00023 
00024 typedef struct _REG_KEY
00025 {
00026   LIST_ENTRY KeyList;
00027   LIST_ENTRY SubKeyList;
00028   LIST_ENTRY ValueList;
00029 
00030   ULONG SubKeyCount;
00031   ULONG ValueCount;
00032 
00033   ULONG NameSize;
00034   PWCHAR Name;
00035 
00036   /* default data */
00037   ULONG DataType;
00038   ULONG DataSize;
00039   PCHAR Data;
00040 } KEY, *FRLDRHKEY, **PFRLDRHKEY;
00041 
00042 
00043 typedef struct _REG_VALUE
00044 {
00045   LIST_ENTRY ValueList;
00046 
00047   /* value name */
00048   ULONG NameSize;
00049   PWCHAR Name;
00050 
00051   /* value data */
00052   ULONG DataType;
00053   ULONG DataSize;
00054   PCHAR Data;
00055 } VALUE, *PVALUE;
00056 
00057 #define assert(x)
00058 
00059 VOID
00060 RegInitializeRegistry(VOID);
00061 
00062 LONG
00063 RegInitCurrentControlSet(BOOLEAN LastKnownGood);
00064 
00065 
00066 LONG
00067 RegCreateKey(FRLDRHKEY ParentKey,
00068          PCWSTR KeyName,
00069          PFRLDRHKEY Key);
00070 
00071 LONG
00072 RegDeleteKey(FRLDRHKEY Key,
00073          PCWSTR Name);
00074 
00075 LONG
00076 RegEnumKey(FRLDRHKEY Key,
00077        ULONG Index,
00078        PWCHAR Name,
00079        ULONG* NameSize);
00080 
00081 LONG
00082 RegOpenKey(FRLDRHKEY ParentKey,
00083        PCWSTR KeyName,
00084        PFRLDRHKEY Key);
00085 
00086 
00087 LONG
00088 RegSetValue(FRLDRHKEY Key,
00089         PCWSTR ValueName,
00090         ULONG Type,
00091         PCSTR Data,
00092         ULONG DataSize);
00093 
00094 LONG
00095 RegQueryValue(FRLDRHKEY Key,
00096           PCWSTR ValueName,
00097           ULONG* Type,
00098           PUCHAR Data,
00099           ULONG* DataSize);
00100 
00101 LONG
00102 RegDeleteValue(FRLDRHKEY Key,
00103            PCWSTR ValueName);
00104 
00105 LONG
00106 RegEnumValue(FRLDRHKEY Key,
00107          ULONG Index,
00108          PWCHAR ValueName,
00109          ULONG* NameSize,
00110          ULONG* Type,
00111          PUCHAR Data,
00112          ULONG* DataSize);
00113 
00114 ULONG
00115 RegGetSubKeyCount (FRLDRHKEY Key);
00116 
00117 ULONG
00118 RegGetValueCount (FRLDRHKEY Key);
00119 
00120 
00121 BOOLEAN
00122 RegImportBinaryHive (PCHAR ChunkBase,
00123              ULONG ChunkSize);
00124 
00125 BOOLEAN
00126 RegExportBinaryHive (PCWSTR KeyName,
00127              PCHAR ChunkBase,
00128              ULONG* ChunkSize);
00129 
00130 
00131 #endif /* __REGISTRY_H */
00132 
00133 /* EOF */
00134 

Generated on Sun May 27 2012 04:17:08 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.