00001 #if !defined(_GREGKEY_H_) && defined(WIN32)
00002 #define _GREGKEY_H_
00003
00005 #include "GContainers.h"
00006 class LgiClass GRegKey
00007 {
00008 HKEY k, Root;
00009 char s[256];
00010 char *KeyName;
00011
00012 public:
00014 GRegKey
00015 (
00017 char *Key,
00018 ...
00019 );
00020 ~GRegKey();
00021
00023 bool IsOk();
00025 bool Create();
00027 char *Name();
00028
00030 char *GetStr
00031 (
00033 char *Name = 0
00034 );
00036 bool SetStr(char *Name, char *Value);
00038 int GetInt(char *Name = 0);
00040 bool SetInt(char *Name, int Value);
00042 bool GetBinary(char *Name, void *&Ptr, int &Len);
00044 bool SetBinary(char *Name, void *Ptr, int Len);
00046 bool DeleteValue(char *Name = 0);
00048 bool DeleteKey();
00049
00051 bool GetKeyNames(List<char> &n);
00053 bool GetValueNames(List<char> &n);
00054 };
00055
00056 #endif