registry.h

00001 
00002 // protect multiple inclusion
00003 #ifndef _REGISTRY_H_INCLUDED_
00004 #define _REGISTRY_H_INCLUDED_
00005 
00006 
00007 // cannot include "main.h" here... colliding IUnknown interface
00008 #include "error.h"
00009 #include "irrlicht.h"
00010 
00011 
00012 // Win32 registry helper
00013 class Registry
00014 {
00015 public:
00016         Registry();
00017         ~Registry();
00018 
00019         // get value (type REG_SZ)
00020         ERR_TYPE queryValue( irr::core::stringc key, irr::core::stringc name, irr::core::stringc* outValue );
00021         // get value (type REG_DWORD)
00022         ERR_TYPE queryValue( irr::core::stringc key, irr::core::stringc name, irr::u32* outValue );
00023         // add value with name at key to registry (type REG_SZ)
00024         ERR_TYPE addValue( irr::core::stringc key, irr::core::stringc name, irr::core::stringc value );
00025         // add value with name at key to registry (type REG_DWORD)
00026         ERR_TYPE addValue( irr::core::stringc key, irr::core::stringc name, irr::u32 value );
00027         // remove key from registry
00028         ERR_TYPE removeKey( irr::core::stringc key, irr::core::stringc name );
00029         // retrieve path of current running process
00030         ERR_TYPE getProcessPath( irr::core::stringc* outPath );
00031 
00032 private:
00033         ERR_TYPE Registry::queryValue( irr::core::stringc key, irr::core::stringc name, void* outBuffer, irr::u32 bufferSize );
00034 };
00035 
00036 
00037 #endif // #ifndef _REGISTRY_H_INCLUDED_

Generated on Sun Dec 2 03:10:23 2007 for TableTop by  doxygen 1.5.4