forked from gradle/native-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WindowsRegistry.java
35 lines (29 loc) · 1.03 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
package net.rubygrapefruit.platform;
import java.util.List;
@ThreadSafe
public interface WindowsRegistry extends NativeIntegration {
public 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;
}