OpenShot Audio Library | OpenShotAudio 0.3.2

Loading...
Searching...
No Matches
juce_WindowsRegistry.h
1/*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2017 - ROLI Ltd.
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 The code included in this file is provided under the terms of the ISC license
11 http://www.isc.org/downloads/software-support-policy/isc-license. Permission
12 To use, copy, modify, and/or distribute this software for any purpose with or
13 without fee is hereby granted provided that the above copyright notice and
14 this permission notice appear in all copies.
15
16 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
17 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
18 DISCLAIMED.
19
20 ==============================================================================
21*/
22
23 namespace juce
24{
25
26#if JUCE_WINDOWS || DOXYGEN
27
34 class JUCE_API WindowsRegistry
35{
36 public:
40 enum WoW64Mode
41 {
44 WoW64_Default = 0,
45
47 WoW64_64bit = 0x100,
48
50 WoW64_32bit = 0x200
51 };
52
53 //==============================================================================
58 static String JUCE_CALLTYPE getValue (const String& regValuePath,
59 const String& defaultValue = String(),
60 WoW64Mode mode = WoW64_Default);
61
67 static uint32 JUCE_CALLTYPE getBinaryValue (const String& regValuePath, MemoryBlock& resultData, WoW64Mode mode = WoW64_Default);
68
72 static bool JUCE_CALLTYPE setValue (const String& regValuePath, const String& value, WoW64Mode mode = WoW64_Default);
73
77 static bool JUCE_CALLTYPE setValue (const String& regValuePath, uint32 value, WoW64Mode mode = WoW64_Default);
78
82 static bool JUCE_CALLTYPE setValue (const String& regValuePath, uint64 value, WoW64Mode mode = WoW64_Default);
83
87 static bool JUCE_CALLTYPE setValue (const String& regValuePath, const MemoryBlock& value, WoW64Mode mode = WoW64_Default);
88
90 static bool JUCE_CALLTYPE valueExists (const String& regValuePath, WoW64Mode mode = WoW64_Default);
91
93 static bool JUCE_CALLTYPE keyExists (const String& regKeyPath, WoW64Mode mode = WoW64_Default);
94
96 static bool JUCE_CALLTYPE deleteValue (const String& regValuePath, WoW64Mode mode = WoW64_Default);
97
99 static bool JUCE_CALLTYPE deleteKey (const String& regKeyPath, WoW64Mode mode = WoW64_Default);
100
118 static bool JUCE_CALLTYPE registerFileAssociation (const String& fileExtension,
119 const String& symbolicDescription,
120 const String& fullDescription,
121 const File& targetExecutable,
122 int iconResourceNumber,
123 bool registerForCurrentUserOnly,
124 WoW64Mode mode = WoW64_Default);
125
126 // DEPRECATED: use the other methods with a WoW64Mode parameter of WoW64_64bit instead.
127 JUCE_DEPRECATED (static String getValueWow64 (const String&, const String& defaultValue = String()));
128 JUCE_DEPRECATED (static bool valueExistsWow64 (const String&));
129 JUCE_DEPRECATED (static bool keyExistsWow64 (const String&));
130
131 private:
132 WindowsRegistry() = delete;
133 JUCE_DECLARE_NON_COPYABLE (WindowsRegistry)
134};
135
136#endif
137
138} // namespace juce