org.apache.tomcat.jni
public class Registry extends Object
Version: $Revision: 832187 $, $Date: 2009-11-03 00:23:20 +0100 (Tue, 03 Nov 2009) $
Field Summary | |
---|---|
static int | HKEY_CLASSES_ROOT |
static int | HKEY_CURRENT_CONFIG |
static int | HKEY_CURRENT_USER |
static int | HKEY_LOCAL_MACHINE |
static int | HKEY_USERS |
static int | KEY_ALL_ACCESS |
static int | KEY_CREATE_LINK |
static int | KEY_CREATE_SUB_KEY |
static int | KEY_ENUMERATE_SUB_KEYS |
static int | KEY_EXECUTE |
static int | KEY_NOTIFY |
static int | KEY_QUERY_VALUE |
static int | KEY_READ |
static int | KEY_SET_VALUE |
static int | KEY_WOW64_32KEY |
static int | KEY_WOW64_64KEY |
static int | KEY_WRITE |
static int | REG_BINARY |
static int | REG_DWORD |
static int | REG_EXPAND_SZ |
static int | REG_MULTI_SZ |
static int | REG_QWORD |
static int | REG_SZ |
Method Summary | |
---|---|
static int | close(long key)
Close the specified Registry key. |
static long | create(int root, String name, int sam, long pool)
Create or open a Registry Key. |
static int | deleteKey(int root, String name, boolean onlyIfEmpty)
Delete the Registry subkey |
static int | deleteValue(long key, String name)
Delete the Registry value |
static String[] | enumKeys(long key)
Enumerate the Registry subkeys |
static String[] | enumValues(long key)
Enumerate the Registry values |
static int | getSize(long key, String name)
Get the Registry key length. |
static int | getType(long key, String name)
Get the Registry key type. |
static String[] | getValueA(long key, String name)
Get the Registry value for REG_MULTI_SZ |
static byte[] | getValueB(long key, String name)
Get the Registry value for REG_BINARY |
static int | getValueI(long key, String name)
Get the Registry value for REG_DWORD |
static long | getValueJ(long key, String name)
Get the Registry value for REG_QWORD or REG_DWORD |
static String | getValueS(long key, String name)
Get the Registry value for REG_SZ or REG_EXPAND_SZ |
static long | open(int root, String name, int sam, long pool)
Opens the specified Registry Key. |
static int | setValueA(long key, String name, String[] val)
Set the Registry value for REG_MULTI_SZ |
static int | setValueB(long key, String name, byte[] val)
Set the Registry value for REG_BINARY |
static int | setValueE(long key, String name, String val)
Set the Registry value for REG_EXPAND_SZ |
static int | setValueI(long key, String name, int val)
Set the Registry value for REG_DWORD |
static int | setValueJ(long key, String name, long val)
Set the Registry value for REG_QWORD |
static int | setValueS(long key, String name, String val)
Set the Registry value for REG_SZ |
Parameters: key The Registry key descriptor to close.
Parameters: name Registry Subkey to open root Root key, one of HKEY_* sam Access mask that specifies the access rights for the key. pool Pool used for native memory allocation
Returns: Opened Registry key
Parameters: root Root key, one of HKEY_* name Subkey to delete onlyIfEmpty If true will not delete a key if it contains any subkeys or values
Returns: If the function succeeds, the return value is 0
Parameters: key The Registry key descriptor to use. name The name of the value to delete
Returns: If the function succeeds, the return value is 0
Parameters: key The Registry key descriptor to use.
Returns: Array of all subkey names
Parameters: key The Registry key descriptor to use.
Returns: Array of all value names
Parameters: key The Registry key descriptor to use. name The name of the value to query
Returns: Value size or negative error value
Parameters: key The Registry key descriptor to use. name The name of the value to query
Returns: Value type or negative error value
Parameters: key The Registry key descriptor to use. name The name of the value to query
Returns: Registry key value
Parameters: key The Registry key descriptor to use. name The name of the value to query
Returns: Registry key value
Parameters: key The Registry key descriptor to use. name The name of the value to query
Returns: Registry key value
Parameters: key The Registry key descriptor to use. name The name of the value to query
Returns: Registry key value
Parameters: key The Registry key descriptor to use. name The name of the value to query
Returns: Registry key value
Parameters: name Registry Subkey to open root Root key, one of HKEY_* sam Access mask that specifies the access rights for the key. pool Pool used for native memory allocation
Returns: Opened Registry key
Parameters: key The Registry key descriptor to use. name The name of the value to set val The the value to set
Returns: If the function succeeds, the return value is 0
Parameters: key The Registry key descriptor to use. name The name of the value to set val The the value to set
Returns: If the function succeeds, the return value is 0
Parameters: key The Registry key descriptor to use. name The name of the value to set val The the value to set
Returns: If the function succeeds, the return value is 0
Parameters: key The Registry key descriptor to use. name The name of the value to set val The the value to set
Returns: If the function succeeds, the return value is 0
Parameters: key The Registry key descriptor to use. name The name of the value to set val The the value to set
Returns: If the function succeeds, the return value is 0
Parameters: key The Registry key descriptor to use. name The name of the value to set val The the value to set
Returns: If the function succeeds, the return value is 0