diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-01-28 20:52:45 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-01-28 20:52:45 +0100 |
commit | 2e626373db2412ac22e8c5c27a60d11cd29e875b (patch) | |
tree | 9e9f67205cd5b72f1031721273e1534a3a1e5b0f /setup_native/source/win32/customactions/reg4msdoc/windowsregistry.cxx | |
parent | f7ee7bbd5174b084f018c2ec94d8c70c98ee04da (diff) |
replace obsolete "master" branch with README that points at new repoHEADmaster-deletedmaster
Diffstat (limited to 'setup_native/source/win32/customactions/reg4msdoc/windowsregistry.cxx')
-rw-r--r-- | setup_native/source/win32/customactions/reg4msdoc/windowsregistry.cxx | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/setup_native/source/win32/customactions/reg4msdoc/windowsregistry.cxx b/setup_native/source/win32/customactions/reg4msdoc/windowsregistry.cxx deleted file mode 100644 index 49c32eb50..000000000 --- a/setup_native/source/win32/customactions/reg4msdoc/windowsregistry.cxx +++ /dev/null @@ -1,58 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -// WindowsRegistry.cpp: Implementierung der Klasse WindowsRegistry. -// -////////////////////////////////////////////////////////////////////// - -#include "windowsregistry.hxx" -#include "registrywnt.hxx" -#include "registryw9x.hxx" - -#ifdef _MSC_VER -#pragma warning(disable : 4350) -#endif - -WindowsRegistry::WindowsRegistry() -{ - OSVERSIONINFOA osverinfo; - ZeroMemory(&osverinfo, sizeof(osverinfo)); - osverinfo.dwOSVersionInfoSize = sizeof(osverinfo); - GetVersionExA(&osverinfo); - - m_IsWinNT = (osverinfo.dwPlatformId == VER_PLATFORM_WIN32_NT); -} - -RegistryKey WindowsRegistry::GetClassesRootKey(bool Writeable) const -{ - return GetRegistryKey(HKEY_CLASSES_ROOT, Writeable); -} - -RegistryKey WindowsRegistry::GetCurrentUserKey(bool Writeable) const -{ - return GetRegistryKey(HKEY_CURRENT_USER, Writeable); -} - -RegistryKey WindowsRegistry::GetLocalMachineKey(bool Writeable) const -{ - return GetRegistryKey(HKEY_LOCAL_MACHINE, Writeable); -} - -RegistryKey WindowsRegistry::GetUserKey(bool Writeable) const -{ - return GetRegistryKey(HKEY_USERS, Writeable); -} - -RegistryKey WindowsRegistry::GetRegistryKey(HKEY RootKey, bool Writeable) const -{ - RegistryKey regkey; - - if (m_IsWinNT) - regkey = RegistryKey(new RegistryKeyImplWinNT(RootKey)); - else - regkey = RegistryKey(new RegistryKeyImplWin9x(RootKey)); - - regkey->Open(Writeable); - - return regkey; -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |