-
Notifications
You must be signed in to change notification settings - Fork 39
/
WindowsRegistry.java
38 lines (32 loc) · 1.12 KB
/
WindowsRegistry.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package net.rubygrapefruit.platform;
import java.util.List;
/**
* Provides access to the Windows registry.
*/
@ThreadSafe
public interface WindowsRegistry extends NativeIntegration {
enum Key {
HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER
}
/**
* Returns a registry key value as a String.
*
* @throws NativeException On failure.
* @throws MissingRegistryEntryException When the requested key or value does not exist.
*/
String getStringValue(Key key, String subkey, String value) throws NativeException;
/**
* Lists the subkeys of a registry key.
*
* @throws NativeException On failure.
* @throws MissingRegistryEntryException When the requested key does not exist.
*/
List<String> getSubkeys(Key key, String subkey) throws NativeException;
/**
* Lists the value names of a registry key.
*
* @throws NativeException On failure.
* @throws MissingRegistryEntryException When the requested key does not exist.
*/
List<String> getValueNames(Key key, String subkey) throws NativeException;
}