00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef QVLC_REGISTRY_H
00024 #define QVLC_REGISTRY_H
00025
00026 #include <windows.h>
00027
00028 class QVLCRegistry
00029 {
00030 private:
00031 HKEY m_RootKey;
00032 char m_pathBuffer[256];
00033 public:
00034 QVLCRegistry(HKEY rootKey);
00035 ~QVLCRegistry(void);
00036
00037 void WriteRegistryInt( const char *path, const char *valueName, int value);
00038 void WriteRegistryString( const char *path, const char *valueName, const char *value);
00039 void WriteRegistryDouble( const char *path, const char *valueName, double value);
00040
00041 int ReadRegistryInt( const char *path, const char *valueName, int default_value);
00042 char * ReadRegistryString( const char *path, const char *valueName, char *default_value);
00043 double ReadRegistryDouble( const char *path, const char *valueName, double default_value);
00044
00045 bool RegistryKeyExists( const char *path);
00046 bool RegistryValueExists( const char *path, const char *valueName);
00047 int DeleteValue( char *path, char *valueName );
00048 long DeleteKey( char *path, char *keyName );
00049 };
00050
00051 #endif