home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softwarová Záchrana 3
/
Softwarova-zachrana-3.bin
/
pserv.cpl
/
pserv-2.4.exe
/
source
/
CConfiguration.h
< prev
next >
Wrap
C/C++ Source or Header
|
2005-01-05
|
2KB
|
59 lines
#ifndef configuration_h
#define configuration_h
#define REGISTRY_BASE _T("SOFTWARE\\p-nand-q.com\\pserv2")
class CRegistry : public CObject
{
public:
CRegistry( HKEY hkParent, LPCTSTR lpszKey, BOOL bSave );
virtual ~CRegistry();
virtual BOOL RegExchange( LPCTSTR lpszName, BOOL* pValue );
virtual BOOL RegExchange( LPCTSTR lpszName, DWORD* pValue );
virtual BOOL RegExchange( LPCTSTR lpszName, CString* pValue );
virtual BOOL RegExchange( LPCTSTR lpszName, CStringArray* pValue );
BOOL m_bSave;
protected:
HKEY m_hKey;
BYTE m_bRegData[1024];
};
class CConfiguration : public CObject
{
public:
CConfiguration();
void Load();
void Save();
// configuration
CString m_strFontFace;
DWORD m_dwFontSize;
DWORD m_bToolbarVisible;
DWORD m_dwWindowX;
DWORD m_dwWindowY;
DWORD m_dwWindowWidth;
DWORD m_dwShowCmd;
DWORD m_dwWindowHeight;
CString m_strExportXmlFilename;
CString m_strExportHTMLFilename;
CString m_strExportRegistryBackupFilename;
CString m_strExportPlaintextFilename;
BOOL m_bSearchCaseSensitive;
BOOL m_bSearchWholeWordsOnly;
BOOL m_bSearchHighlightAllResults;
BOOL m_bSearchUp;
CStringArray m_FindStrings;
CStringArray m_ComputerNames;
protected:
void DoConfigExchange(CRegistry& key);
};
extern CConfiguration theConfiguration;
#endif // configuration_h