xref: /trunk/main/setup_native/source/win32/customactions/reg4msdoc/windowsregistry.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir // WindowsRegistry.h: Schnittstelle f�r die Klasse WindowsRegistry.
2*cdf0e10cSrcweir //
3*cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////
4*cdf0e10cSrcweir 
5*cdf0e10cSrcweir #ifndef _WINDOWSREGISTRY_HXX_
6*cdf0e10cSrcweir #define _WINDOWSREGISTRY_HXX_
7*cdf0e10cSrcweir 
8*cdf0e10cSrcweir #ifdef _MSC_VER
9*cdf0e10cSrcweir #pragma warning(push, 1) /* disable warnings within system headers */
10*cdf0e10cSrcweir #endif
11*cdf0e10cSrcweir #include <windows.h>
12*cdf0e10cSrcweir #ifdef _MSC_VER
13*cdf0e10cSrcweir #pragma warning(pop)
14*cdf0e10cSrcweir #endif
15*cdf0e10cSrcweir 
16*cdf0e10cSrcweir #include "Registry.hxx"
17*cdf0e10cSrcweir 
18*cdf0e10cSrcweir /** Basically a factory class
19*cdf0e10cSrcweir */
20*cdf0e10cSrcweir class WindowsRegistry
21*cdf0e10cSrcweir {
22*cdf0e10cSrcweir public:
23*cdf0e10cSrcweir     WindowsRegistry();
24*cdf0e10cSrcweir 
25*cdf0e10cSrcweir     RegistryKey GetClassesRootKey(bool Writeable = true) const;
26*cdf0e10cSrcweir 
27*cdf0e10cSrcweir     RegistryKey GetCurrentUserKey(bool Writeable = true) const;
28*cdf0e10cSrcweir 
29*cdf0e10cSrcweir     RegistryKey GetLocalMachineKey(bool Writeable = true) const;
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir     RegistryKey GetUserKey(bool Writeable = true) const;
32*cdf0e10cSrcweir 
33*cdf0e10cSrcweir private:
34*cdf0e10cSrcweir     RegistryKey GetRegistryKey(HKEY RootKey, bool Writeable) const;
35*cdf0e10cSrcweir 
36*cdf0e10cSrcweir private:
37*cdf0e10cSrcweir     bool m_IsWinNT;
38*cdf0e10cSrcweir };
39*cdf0e10cSrcweir 
40*cdf0e10cSrcweir #endif
41