- Open registry key java
- HKEY_CLASSES_ROOT
- HKEY_CURRENT_CONFIG
- HKEY_CURRENT_USER
- HKEY_LOCAL_MACHINE
- HKEY_USERS
- KEY_ALL_ACCESS
- KEY_CREATE_LINK
- KEY_CREATE_SUB_KEY
- KEY_ENUMERATE_SUB_KEYS
- KEY_EXECUTE
- KEY_NOTIFY
- KEY_QUERY_VALUE
- KEY_READ
- KEY_SET_VALUE
- KEY_WOW64_64KEY
- KEY_WOW64_32KEY
- KEY_WRITE
- REG_BINARY
- REG_DWORD
- REG_EXPAND_SZ
- REG_MULTI_SZ
- REG_QWORD
- REG_SZ
- Registry
- create
- open
- close
- getType
- getValueI
- getValueJ
- getSize
- getValueS
- getValueA
- getValueB
- setValueI
- setValueJ
- setValueS
- setValueE
- setValueA
- setValueB
- enumKeys
- enumValues
- deleteValue
- deleteKey
- Open registry key java
- Field Summary
- Constructor Summary
- Method Summary
- Methods inherited from class java.lang.Object
- Field Detail
- HKEY_CLASSES_ROOT
- HKEY_CURRENT_CONFIG
- HKEY_CURRENT_USER
- HKEY_LOCAL_MACHINE
- HKEY_USERS
- KEY_ALL_ACCESS
- KEY_CREATE_LINK
- KEY_CREATE_SUB_KEY
- KEY_ENUMERATE_SUB_KEYS
- KEY_EXECUTE
- KEY_NOTIFY
- KEY_QUERY_VALUE
- KEY_READ
- KEY_SET_VALUE
- KEY_WOW64_64KEY
- KEY_WOW64_32KEY
- KEY_WRITE
- REG_BINARY
- REG_DWORD
- REG_EXPAND_SZ
- REG_MULTI_SZ
- REG_QWORD
- REG_SZ
- Constructor Detail
- Registry
- Method Detail
- create
- open
- close
- getType
- getValueI
- getValueJ
- getSize
- getValueS
- getValueA
- getValueB
- setValueI
- setValueJ
- setValueS
- setValueE
- setValueA
- setValueB
- enumKeys
Open registry key java
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 |
Constructor Summary | |
---|---|
Registry () |
Method Summary | |
---|---|
static int | close (long key) Close the specified Registry key. |
static long | create (int root, java.lang.String name, int sam, long pool) Create or open a Registry Key. |
static int | deleteKey (int root, java.lang.String name, boolean onlyIfEmpty) Delete the Registry subkey |
static int | deleteValue (long key, java.lang.String name) Delete the Registry value |
static java.lang.String[] | enumKeys (long key) Enumerate the Registry subkeys |
static java.lang.String[] | enumValues (long key) Enumerate the Registry values |
static int | getSize (long key, java.lang.String name) Get the Registry key length. |
static int | getType (long key, java.lang.String name) Get the Registry key type. |
static java.lang.String[] | getValueA (long key, java.lang.String name) Get the Registry value for REG_MULTI_SZ |
static byte[] | getValueB (long key, java.lang.String name) Get the Registry value for REG_BINARY |
static int | getValueI (long key, java.lang.String name) Get the Registry value for REG_DWORD |
static long | getValueJ (long key, java.lang.String name) Get the Registry value for REG_QWORD or REG_DWORD |
static java.lang.String | getValueS (long key, java.lang.String name) Get the Registry value for REG_SZ or REG_EXPAND_SZ |
static long | open (int root, java.lang.String name, int sam, long pool) Opens the specified Registry Key. |
static int | setValueA (long key, java.lang.String name, java.lang.String[] val) Set the Registry value for REG_MULTI_SZ |
static int | setValueB (long key, java.lang.String name, byte[] val) Set the Registry value for REG_BINARY |
static int | setValueE (long key, java.lang.String name, java.lang.String val) Set the Registry value for REG_EXPAND_SZ |
static int | setValueI (long key, java.lang.String name, int val) Set the Registry value for REG_DWORD |
static int | setValueJ (long key, java.lang.String name, long val) Set the Registry value for REG_QWORD |
static int | setValueS (long key, java.lang.String name, java.lang.String val) Set the Registry value for REG_SZ |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HKEY_CLASSES_ROOT
public static final int HKEY_CLASSES_ROOT
HKEY_CURRENT_CONFIG
public static final int HKEY_CURRENT_CONFIG
HKEY_CURRENT_USER
public static final int HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
public static final int HKEY_LOCAL_MACHINE
HKEY_USERS
public static final int HKEY_USERS
KEY_ALL_ACCESS
public static final int KEY_ALL_ACCESS
KEY_CREATE_LINK
public static final int KEY_CREATE_LINK
KEY_CREATE_SUB_KEY
public static final int KEY_CREATE_SUB_KEY
KEY_ENUMERATE_SUB_KEYS
public static final int KEY_ENUMERATE_SUB_KEYS
KEY_EXECUTE
public static final int KEY_EXECUTE
KEY_NOTIFY
public static final int KEY_NOTIFY
KEY_QUERY_VALUE
public static final int KEY_QUERY_VALUE
KEY_READ
public static final int KEY_READ
KEY_SET_VALUE
public static final int KEY_SET_VALUE
KEY_WOW64_64KEY
public static final int KEY_WOW64_64KEY
KEY_WOW64_32KEY
public static final int KEY_WOW64_32KEY
KEY_WRITE
public static final int KEY_WRITE
REG_BINARY
public static final int REG_BINARY
REG_DWORD
public static final int REG_DWORD
REG_EXPAND_SZ
public static final int REG_EXPAND_SZ
REG_MULTI_SZ
public static final int REG_MULTI_SZ
REG_QWORD
public static final int REG_QWORD
REG_SZ
public static final int REG_SZ
Registry
create
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 Throws: Error
open
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 Throws: Error
close
public static int close(long key)
Parameters: key — The Registry key descriptor to close.
getType
public static int getType(long key, java.lang.String name)
Parameters: key — The Registry key descriptor to use. name — The name of the value to query Returns: Value type or negative error value
getValueI
Parameters: key — The Registry key descriptor to use. name — The name of the value to query Returns: Registry key value Throws: Error
getValueJ
Parameters: key — The Registry key descriptor to use. name — The name of the value to query Returns: Registry key value Throws: Error
getSize
public static int getSize(long key, java.lang.String name)
Parameters: key — The Registry key descriptor to use. name — The name of the value to query Returns: Value size or negative error value
getValueS
Parameters: key — The Registry key descriptor to use. name — The name of the value to query Returns: Registry key value Throws: Error
getValueA
Parameters: key — The Registry key descriptor to use. name — The name of the value to query Returns: Registry key value Throws: Error
getValueB
Parameters: key — The Registry key descriptor to use. name — The name of the value to query Returns: Registry key value Throws: Error
setValueI
public static int setValueI(long key, java.lang.String name, int val)
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
setValueJ
public static int setValueJ(long key, java.lang.String name, long val)
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
setValueS
public static int setValueS(long key, java.lang.String name, java.lang.String val)
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
setValueE
public static int setValueE(long key, java.lang.String name, java.lang.String val)
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
setValueA
public static int setValueA(long key, java.lang.String name, java.lang.String[] val)
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
setValueB
public static int setValueB(long key, java.lang.String name, byte[] val)
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
enumKeys
Parameters: key — The Registry key descriptor to use. Returns: Array of all subkey names Throws: Error
enumValues
Parameters: key — The Registry key descriptor to use. Returns: Array of all value names Throws: Error
deleteValue
public static int deleteValue(long key, java.lang.String name)
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
deleteKey
public static int deleteKey(int root, java.lang.String name, boolean onlyIfEmpty)
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
| Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Open registry key java
Field Summary
Constructor Summary
Method Summary
Methods inherited from class java.lang.Object
Field Detail
HKEY_CLASSES_ROOT
public static final int HKEY_CLASSES_ROOT
HKEY_CURRENT_CONFIG
public static final int HKEY_CURRENT_CONFIG
HKEY_CURRENT_USER
public static final int HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
public static final int HKEY_LOCAL_MACHINE
HKEY_USERS
public static final int HKEY_USERS
KEY_ALL_ACCESS
public static final int KEY_ALL_ACCESS
KEY_CREATE_LINK
public static final int KEY_CREATE_LINK
KEY_CREATE_SUB_KEY
public static final int KEY_CREATE_SUB_KEY
KEY_ENUMERATE_SUB_KEYS
public static final int KEY_ENUMERATE_SUB_KEYS
KEY_EXECUTE
public static final int KEY_EXECUTE
KEY_NOTIFY
public static final int KEY_NOTIFY
KEY_QUERY_VALUE
public static final int KEY_QUERY_VALUE
KEY_READ
public static final int KEY_READ
KEY_SET_VALUE
public static final int KEY_SET_VALUE
KEY_WOW64_64KEY
public static final int KEY_WOW64_64KEY
KEY_WOW64_32KEY
public static final int KEY_WOW64_32KEY
KEY_WRITE
public static final int KEY_WRITE
REG_BINARY
public static final int REG_BINARY
REG_DWORD
public static final int REG_DWORD
REG_EXPAND_SZ
public static final int REG_EXPAND_SZ
REG_MULTI_SZ
public static final int REG_MULTI_SZ
REG_QWORD
public static final int REG_QWORD
REG_SZ
public static final int REG_SZ
Constructor Detail
Registry
Method Detail
create
open
close
public static int close(long key)
getType
public static int getType(long key, java.lang.String name)
getValueI
getValueJ
getSize
public static int getSize(long key, java.lang.String name)
getValueS
getValueA
getValueB
setValueI
public static int setValueI(long key, java.lang.String name, int val)
setValueJ
public static int setValueJ(long key, java.lang.String name, long val)
setValueS
public static int setValueS(long key, java.lang.String name, java.lang.String val)
setValueE
public static int setValueE(long key, java.lang.String name, java.lang.String val)
setValueA
public static int setValueA(long key, java.lang.String name, java.lang.String[] val)
setValueB
public static int setValueB(long key, java.lang.String name, byte[] val)