Contains some static helper functions for manipulating the MS Windows registry (Only available on Windows, of course!) More...
#include <juce_WindowsRegistry.h>
Public Types | |
enum | WoW64Mode { WoW64_Default = 0, WoW64_64bit = 0x100, WoW64_32bit = 0x200 } |
These values can be used to specify whether the 32- or 64-bit registry should be used. More... | |
Static Public Member Functions | |
static bool | deleteKey (const String ®KeyPath, WoW64Mode mode=WoW64_Default) |
Deletes a registry key (which is registry-talk for 'folder'). More... | |
static bool | deleteValue (const String ®ValuePath, WoW64Mode mode=WoW64_Default) |
Deletes a registry value. More... | |
static uint32 | getBinaryValue (const String ®ValuePath, MemoryBlock &resultData, WoW64Mode mode=WoW64_Default) |
Reads a binary block from the registry. More... | |
static String | getValue (const String ®ValuePath, const String &defaultValue=String(), WoW64Mode mode=WoW64_Default) |
Returns a string from the registry. More... | |
static String | getValueWow64 (const String &, const String &defaultValue=String()) |
deprecated More... | |
static bool | keyExists (const String ®ValuePath, WoW64Mode mode=WoW64_Default) |
Returns true if the given key exists in the registry. More... | |
static bool | keyExistsWow64 (const String &) |
deprecated More... | |
static bool | registerFileAssociation (const String &fileExtension, const String &symbolicDescription, const String &fullDescription, const File &targetExecutable, int iconResourceNumber, bool registerForCurrentUserOnly, WoW64Mode mode=WoW64_Default) |
Creates a file association in the registry. More... | |
static bool | setValue (const String ®ValuePath, const String &value, WoW64Mode mode=WoW64_Default) |
Sets a registry value as a string. More... | |
static bool | setValue (const String ®ValuePath, uint32 value, WoW64Mode mode=WoW64_Default) |
Sets a registry value as a DWORD. More... | |
static bool | setValue (const String ®ValuePath, uint64 value, WoW64Mode mode=WoW64_Default) |
Sets a registry value as a QWORD. More... | |
static bool | setValue (const String ®ValuePath, const MemoryBlock &value, WoW64Mode mode=WoW64_Default) |
Sets a registry value as a binary block. More... | |
static bool | valueExists (const String ®ValuePath, WoW64Mode mode=WoW64_Default) |
Returns true if the given value exists in the registry. More... | |
static bool | valueExistsWow64 (const String &) |
deprecated More... | |
Private Member Functions | |
WindowsRegistry ()=delete | |
Contains some static helper functions for manipulating the MS Windows registry (Only available on Windows, of course!)
{Core}
These values can be used to specify whether the 32- or 64-bit registry should be used.
When running on a 32-bit OS, there is no 64-bit registry, so the mode will be ignored.
|
privatedelete |
|
static |
Deletes a registry key (which is registry-talk for 'folder').
|
static |
Deletes a registry value.
|
static |
Reads a binary block from the registry.
The path is a string for the entire path of a value in the registry, e.g. "HKEY_CURRENT_USER\Software\foo\bar"
|
static |
Returns a string from the registry.
The path is a string for the entire path of a value in the registry, e.g. "HKEY_CURRENT_USER\Software\foo\bar"
|
static |
deprecated
|
static |
Returns true if the given key exists in the registry.
|
static |
Creates a file association in the registry.
This lets you set the executable that should be launched by a given file extension.
fileExtension | the file extension to associate, including the initial dot, e.g. ".txt" |
symbolicDescription | a space-free short token to identify the file type |
fullDescription | a human-readable description of the file type |
targetExecutable | the executable that should be launched |
iconResourceNumber | the icon that gets displayed for the file type will be found by looking up this resource number in the executable. Pass 0 here to not use an icon |
registerForCurrentUserOnly | if false, this will try to register the association for all users (you might not have permission to do this unless running in an installer). If true, it will register the association in HKEY_CURRENT_USER. |
mode | the WoW64 mode to use for choosing the database |
|
static |
Sets a registry value as a string.
This will take care of creating any groups needed to get to the given registry value.
|
static |
Sets a registry value as a DWORD.
This will take care of creating any groups needed to get to the given registry value.
|
static |
Sets a registry value as a QWORD.
This will take care of creating any groups needed to get to the given registry value.
|
static |
Sets a registry value as a binary block.
This will take care of creating any groups needed to get to the given registry value.
|
static |
Returns true if the given value exists in the registry.