|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IJIWinReg
Interface for performing C-R-U-D on the Windows registry in a platform independent way without using JNI.
This interface used Windows Remote Registry service and should be running on target workstation. The SERVER service
should also be running.
Nested Class Summary | |
---|---|
static class |
IJIWinReg.closeKey
|
static class |
IJIWinReg.createKey
|
static class |
IJIWinReg.deleteValueOrKey
|
static class |
IJIWinReg.enumKey
|
static class |
IJIWinReg.enumValue
|
static class |
IJIWinReg.openHKCR
|
static class |
IJIWinReg.openHKCU
|
static class |
IJIWinReg.openHKLM
|
static class |
IJIWinReg.openHKU
|
static class |
IJIWinReg.openKey
|
static class |
IJIWinReg.queryValue
|
static class |
IJIWinReg.saveFile
|
static class |
IJIWinReg.setValue
|
Field Summary | |
---|---|
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_WRITE
|
static int |
REG_BINARY
Type specifying Binary |
static int |
REG_DWORD
Type specifying DWORD |
static int |
REG_EXPAND_SZ
Type specifying environment string |
static int |
REG_MULTI_SZ
Type specifying mutliple strings (array) |
static int |
REG_NONE
Type specifying empty type |
static int |
REG_OPTION_NON_VOLATILE
|
static int |
REG_OPTION_VOLATILE
|
static int |
REG_SZ
Type specifying String |
Method Summary | |
---|---|
void |
closeConnection()
Closes this connection, but a word of caution, it does not close any OPEN Key. |
void |
winreg_CloseKey(JIPolicyHandle handle)
Closes the key. |
JIPolicyHandle |
winreg_CreateKey(JIPolicyHandle handle,
java.lang.String subKey,
int options,
int accessMask)
Creates a new key by name subKey under the handle. |
void |
winreg_DeleteKeyOrValue(JIPolicyHandle handle,
java.lang.String valueName,
boolean isKey)
Deletes a key or value specified by valueName. |
java.lang.String[] |
winreg_EnumKey(JIPolicyHandle handle,
int index)
Returns name and class (in that order) for the key identified by index under parent handle. |
java.lang.Object[] |
winreg_EnumValue(JIPolicyHandle handle,
int index)
Returns name and type (in that order) for the value identified by index under parent handle. |
JIPolicyHandle |
winreg_OpenHKCR()
Opens the HKEY_CLASSES_ROOT key |
JIPolicyHandle |
winreg_OpenHKCU()
Opens the HKEY_CURRENT_USER key |
JIPolicyHandle |
winreg_OpenHKLM()
Opens the HKEY_LOCAL_MACHINE key |
JIPolicyHandle |
winreg_OpenHKU()
Opens the HKEY_USERS key |
JIPolicyHandle |
winreg_OpenKey(JIPolicyHandle handle,
java.lang.String key,
int accessMask)
Opens the subkey of key specified by handle. |
byte[] |
winreg_QueryValue(JIPolicyHandle handle,
int bufferSize)
Query the key for it's name. |
java.lang.Object[] |
winreg_QueryValue(JIPolicyHandle handle,
java.lang.String valueName,
int bufferSize)
Query the key-value for it's value.Please put buffer size more than the estimated expected value. |
void |
winreg_SaveFile(JIPolicyHandle handle,
java.lang.String fileName)
Saves registry entries from handle location to local fileName. |
void |
winreg_SetValue(JIPolicyHandle handle,
java.lang.String valueName)
Sets an empty name-value for a REG_NONE type. |
void |
winreg_SetValue(JIPolicyHandle handle,
java.lang.String valueName,
byte[][] data)
Sets name-value for a REG_MULTI_SZ type. |
void |
winreg_SetValue(JIPolicyHandle handle,
java.lang.String valueName,
byte[] data,
boolean binary,
boolean expand_sz)
Sets name-value for a REG_SZ\REG_EXPAND_SZ\REG_BINARY type. |
void |
winreg_SetValue(JIPolicyHandle handle,
java.lang.String valueName,
int data)
Sets name-value for a REG_DWORD type. |
Field Detail |
---|
static final int KEY_ALL_ACCESS
static final int KEY_CREATE_LINK
static final int KEY_CREATE_SUB_KEY
static final int KEY_ENUMERATE_SUB_KEYS
static final int KEY_EXECUTE
static final int KEY_NOTIFY
static final int KEY_QUERY_VALUE
static final int KEY_READ
static final int KEY_SET_VALUE
static final int KEY_WRITE
static final int REG_SZ
static final int REG_BINARY
static final int REG_DWORD
static final int REG_EXPAND_SZ
static final int REG_MULTI_SZ
static final int REG_NONE
static final int REG_OPTION_NON_VOLATILE
static final int REG_OPTION_VOLATILE
Method Detail |
---|
JIPolicyHandle winreg_OpenHKCR() throws JIException
JIException
JIPolicyHandle winreg_OpenHKCU() throws JIException
JIException
JIPolicyHandle winreg_OpenHKU() throws JIException
JIException
JIPolicyHandle winreg_OpenHKLM() throws JIException
JIException
JIPolicyHandle winreg_OpenKey(JIPolicyHandle handle, java.lang.String key, int accessMask) throws JIException
handle
- key
- accessMask
- type of access required.
JIException
void winreg_CloseKey(JIPolicyHandle handle) throws JIException
handle
-
JIException
byte[] winreg_QueryValue(JIPolicyHandle handle, int bufferSize) throws JIException
handle
- bufferSize
-
JIException
java.lang.Object[] winreg_QueryValue(JIPolicyHandle handle, java.lang.String valueName, int bufferSize) throws JIException
handle
- bufferSize
- valueName
-
JIException
JIPolicyHandle winreg_CreateKey(JIPolicyHandle handle, java.lang.String subKey, int options, int accessMask) throws JIException
handle
- subKey
- options
- accessMask
-
JIException
void winreg_SetValue(JIPolicyHandle handle, java.lang.String valueName, byte[][] data) throws JIException
handle
- valueName
- data
-
JIException
void winreg_SetValue(JIPolicyHandle handle, java.lang.String valueName) throws JIException
handle
- valueName
-
JIException
void winreg_SetValue(JIPolicyHandle handle, java.lang.String valueName, byte[] data, boolean binary, boolean expand_sz) throws JIException
handle
- valueName
- data
- binary
- expand_sz
-
JIException
void winreg_SetValue(JIPolicyHandle handle, java.lang.String valueName, int data) throws JIException
handle
- valueName
- data
-
JIException
void winreg_DeleteKeyOrValue(JIPolicyHandle handle, java.lang.String valueName, boolean isKey) throws JIException
handle
- valueName
- isKey
-
JIException
void winreg_SaveFile(JIPolicyHandle handle, java.lang.String fileName) throws JIException
handle
- fileName
-
JIException
java.lang.String[] winreg_EnumKey(JIPolicyHandle handle, int index) throws JIException
handle
- index
-
JIException
java.lang.Object[] winreg_EnumValue(JIPolicyHandle handle, int index) throws JIException
handle
- index
-
JIException
void closeConnection() throws JIException
JIException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |