#include <MyRegistry.H>
Public Member Functions | |
| MyRegistry (BOOL autoCreate=FALSE) | |
| Contructeur avec l'autocreate.   | |
| BOOL | operator= (char *nameKey) | 
| BOOL | Open (char *nameKey) | 
| Affect un nom de clef.   | |
| void | GetKeyName (MyString &result) | 
| BOOL | Create (char *nameKey) | 
| Creation d'une clef.   | |
| void | SetAutoCreate (BOOL autoCreate) | 
| Active ou pas le mode de creation de clef si non existant quand on utilise.   | |
| BOOL | IsAutoCreate () | 
| int | GetValueType (char *param) | 
| int | GetValueSize (char *param) | 
| Place la valeur value dans le parametre param de la base de registre selectionner par nameKey.   | |
| BOOL | GetValue (char *param, char *result, char *defValue=NULL) | 
| BOOL | GetValue (char *param, MyString &result, char *defValue=NULL) | 
| BOOL | GetValueMulti (char *param, MyList< MyString > &result, char *defValue=NULL) | 
| BOOL | GetValueExpand (char *param, char *result, char *defValue=NULL) | 
| BOOL | GetValueExpand (char *param, MyString &result, char *defValue=NULL) | 
| BOOL | GetValue (char *param, int *result, int defValue=0) | 
| BOOL | GetValue (char *param, DWORD *result, DWORD defValue=0) | 
| BOOL | GetValue (char *param, LONGLONG *result, LONGLONG defValue=0) | 
| LPBYTE | GetValue (char *param) | 
| BOOL | GetValue (char *param, float *result, float defValue=0) | 
| BOOL | GetValue (char *param, double *result, double defValue=0) | 
| BOOL | SetValue (char *param) | 
| BOOL | SetValue (char *param, int value) | 
| BOOL | SetValue (char *param, DWORD value) | 
| BOOL | SetValueLittleEndian (char *param, DWORD value) | 
| BOOL | SetValueBigEndian (char *param, DWORD value) | 
| BOOL | SetValue (char *param, LONGLONG value) | 
| BOOL | SetValueLittleEndian (char *param, LONGLONG value) | 
| BOOL | SetValue (char *param, char *value) | 
| BOOL | SetValueExpand (char *param, char *value) | 
| BOOL | SetValueMulti (char *param, MyList< MyString > &lString) | 
| BOOL | SetValueMulti (char *param, char *value) | 
| BOOL | SetValue (char *param, LPBYTE data, int size) | 
| BOOL | SetValue (char *param, float result) | 
| BOOL | SetValue (char *param, double result) | 
| BOOL | DeleteValue (char *param) | 
| Efface une valeur.   | |
| BOOL | DeleteKey (char *nameKey=NULL) | 
| Efface une clef.   | |
| BOOL | TestValue (char *param) | 
| BOOL | TestKey () | 
| Teste si un valeur existe.   | |
| int | GetLastError () | 
| void | BeginEnumKey () | 
| BOOL | NextEnumKey (char *result) | 
| BOOL | NextEnumKey (MyString &result) | 
| void | BeginEnumValue () | 
| BOOL | NextEnumValue (char *result) | 
| BOOL | NextEnumValue (MyString &result) | 
Example:
MyRegistry reg(TRUE); // autoCreate= Yes MyString str1; char str2[4096]; MyList<MyString> lStr; int integer; LONGLONG linteger; BOOL r; r=reg="HKCU\\test"; r=reg.SetValue("boolean"); r=reg.SetValue("string1","hello word!"); r=reg.SetValueExpand("path","%windir%\\myFolder"); r=reg.SetValueMulti("listFriend","dudu\0grib\0cecile\0"); r=reg.SetValue("integer",-12); r=reg.SetValueLittleEndian("integer le",(DWORD)-12); r=reg.SetValueBigEndian("integer be",-12); r=reg.SetValue("linteger",(LONGLONG) -12); r=reg.SetValueLittleEndian("linteger le",(LONGLONG) -12); r=reg.SetValue("binary",(LPBYTE)"01234567890123456789",20); r= (BOOL)reg.GetValue("boolean"); // res = 1; r=reg.GetValue("string1",str1); // "hello word !" r=reg.GetValue("path",str1); // "%windir%\myFolder" r=reg.GetValueExpand("path",str1); // "c:\windows\myFolder" r=reg.GetValue("listFriend",str1); // "dudu grib cecile" r=reg.GetValue("string1",str2); // "hello word !" r=reg.GetValue("path",str2); // "%windir%\myFolder" r=reg.GetValueExpand("path",str2); // "c:\windows\myFolder" r=reg.GetValue("listFriend",str2); // "dudu grib cecile" r=reg.GetValueMulti("listFriend",lStr); // {"dudu","grib","cecile"}; r=reg.SetValueMulti("copy listFriend",lStr); r=reg.GetValue("integer",&integer); // -12 r=reg.GetValue("integer le",&integer); // -12 r=reg.GetValue("integer be",&integer); // -12 r=reg.GetValue("linteger",&linteger); // -12 r=reg.GetValue("linteger le",&linteger); // -12 LPVOID bin =reg.GetValue("binary"); delete bin;
Definition at line 77 of file MyRegistry.H.
      
  | 
  
| 
 Contructeur avec l'autocreate. Cf.: SetAutoCreate Definition at line 108 of file MyRegistry.CPP.  | 
  
      
  | 
  
| 
 
 Definition at line 137 of file MyRegistry.H.  | 
  
      
  | 
  
| 
 
 Definition at line 141 of file MyRegistry.H.  | 
  
      
  | 
  
| 
 Creation d'une clef. Ex.: 
 Definition at line 245 of file MyRegistry.CPP. References BOOL(). Referenced by Open().  | 
  
      
  | 
  
| 
 Efface une clef. 
 Definition at line 263 of file MyRegistry.CPP. References BOOL(), MyString::GetValue(), and TestKey(). Referenced by ControlEngine::ControlEngine().  | 
  
      
  | 
  
| 
 Efface une valeur. 
 Definition at line 277 of file MyRegistry.CPP.  | 
  
      
  | 
  
| 
 
 Definition at line 195 of file MyRegistry.CPP.  | 
  
      
  | 
  
| 
 
 Definition at line 135 of file MyRegistry.H.  | 
  
      
  | 
  ||||||||||||||||
| 
 
 Definition at line 524 of file MyRegistry.CPP. References BOOL(), GetValue(), param, res, and MyString::ToDouble().  | 
  
      
  | 
  ||||||||||||||||
| 
 
 Definition at line 515 of file MyRegistry.CPP. References BOOL(), GetValue(), param, res, and MyString::ToFloat().  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  ||||||||||||||||
| 
 
 Definition at line 500 of file MyRegistry.CPP. References BOOL(), GetValue(), GetValueType(), param, res, and uType.  | 
  
      
  | 
  ||||||||||||||||
| 
 
 Definition at line 481 of file MyRegistry.CPP. References BOOL(), GetValue(), GetValueType(), param, res, and uType.  | 
  
      
  | 
  ||||||||||||||||
| 
 
 Definition at line 476 of file MyRegistry.CPP. References BOOL(), GetValue(), and param.  | 
  
      
  | 
  ||||||||||||||||
| 
 
 Definition at line 383 of file MyRegistry.CPP. References BOOL(), MyString::Delete(), GetValue(), GetValueSize(), GetValueType(), param, res, and uType.  | 
  
      
  | 
  ||||||||||||||||
| 
 
 Definition at line 369 of file MyRegistry.CPP. References BOOL(), MyString::GetSize(), MyString::GetValue(), and param. Referenced by ControlEngine::ControlEngine(), GetValue(), GetValueExpand(), and GetValueMulti().  | 
  
      
  | 
  ||||||||||||||||
| 
 
 Definition at line 458 of file MyRegistry.CPP. References BOOL(), GetValue(), param, and res.  | 
  
      
  | 
  ||||||||||||||||
| 
 
 Definition at line 450 of file MyRegistry.CPP.  | 
  
      
  | 
  ||||||||||||||||
| 
 
 Definition at line 418 of file MyRegistry.CPP. References BOOL(), GetValue(), GetValueSize(), MyList< T >::i, param, and res.  | 
  
      
  | 
  
| 
 Place la valeur value dans le parametre param de la base de registre selectionner par nameKey. 
 Definition at line 320 of file MyRegistry.CPP. Referenced by GetValue(), and GetValueMulti().  | 
  
      
  | 
  
| 
 
 Definition at line 333 of file MyRegistry.CPP. Referenced by GetValue().  | 
  
      
  | 
  
| 
 
 Definition at line 37 of file MyRegistry.CPP. References BOOL().  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 Affect un nom de clef. Accept le chemin relatif 
 Definition at line 126 of file MyRegistry.CPP. References BOOL(), and Create(). Referenced by operator=().  | 
  
      
  | 
  
| 
 
 Definition at line 81 of file MyRegistry.H.  | 
  
      
  | 
  
| 
 Active ou pas le mode de creation de clef si non existant quand on utilise. Read() 
 Definition at line 32 of file MyRegistry.CPP.  | 
  
      
  | 
  ||||||||||||
| 
 
  | 
  
      
  | 
  ||||||||||||
| 
 
  | 
  
      
  | 
  ||||||||||||||||
| 
 
  | 
  
      
  | 
  ||||||||||||
| 
 
  | 
  
      
  | 
  ||||||||||||
| 
 
  | 
  
      
  | 
  ||||||||||||
| 
 
  | 
  
      
  | 
  ||||||||||||
| 
 
  | 
  
      
  | 
  
| 
 
 Referenced by ControlEngine::~ControlEngine().  | 
  
      
  | 
  ||||||||||||
| 
 
  | 
  
      
  | 
  ||||||||||||
| 
 
  | 
  
      
  | 
  ||||||||||||
| 
 
  | 
  
      
  | 
  ||||||||||||
| 
 
  | 
  
      
  | 
  ||||||||||||
| 
 
  | 
  
      
  | 
  ||||||||||||
| 
 
  | 
  
      
  | 
  
| 
 Teste si un valeur existe. 
 Definition at line 290 of file MyRegistry.CPP. References BOOL(). Referenced by ControlEngine::ControlEngine(), and DeleteKey().  | 
  
      
  | 
  
| 
 
 Definition at line 304 of file MyRegistry.CPP.  | 
  
 
1.3.6