|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Perform C-R-U-D on the Windows Registry.
This interface uses "Windows Remote Registry" and "Server" services and these must be running on target workstation.
| 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 |
public static final int KEY_ALL_ACCESS
public static final int KEY_CREATE_LINK
public static final int KEY_CREATE_SUB_KEY
public static final int KEY_ENUMERATE_SUB_KEYS
public static final int KEY_EXECUTE
public static final int KEY_NOTIFY
public static final int KEY_QUERY_VALUE
public static final int KEY_READ
public static final int KEY_SET_VALUE
public static final int KEY_WRITE
public static final int REG_SZ
public static final int REG_BINARY
public static final int REG_DWORD
public static final int REG_EXPAND_SZ
public static final int REG_MULTI_SZ
public static final int REG_NONE
public static final int REG_OPTION_NON_VOLATILE
public static final int REG_OPTION_VOLATILE
| Method Detail |
public JIPolicyHandle winreg_OpenHKCR()
throws JIException
JIException
public JIPolicyHandle winreg_OpenHKCU()
throws JIException
JIException
public JIPolicyHandle winreg_OpenHKU()
throws JIException
JIException
public JIPolicyHandle winreg_OpenHKLM()
throws JIException
JIException
public JIPolicyHandle winreg_OpenKey(JIPolicyHandle handle,
java.lang.String key,
int accessMask)
throws JIException
handle - key - accessMask - type of access required.
JIException
public void winreg_CloseKey(JIPolicyHandle handle)
throws JIException
handle -
JIException
public byte[] winreg_QueryValue(JIPolicyHandle handle,
int bufferSize)
throws JIException
handle - bufferSize -
JIException
public java.lang.Object[] winreg_QueryValue(JIPolicyHandle handle,
java.lang.String valueName,
int bufferSize)
throws JIException
handle - bufferSize - valueName -
JIException
public JIPolicyHandle winreg_CreateKey(JIPolicyHandle handle,
java.lang.String subKey,
int options,
int accessMask)
throws JIException
handle - subKey - options - accessMask -
JIException
public void winreg_SetValue(JIPolicyHandle handle,
java.lang.String valueName,
byte[][] data)
throws JIException
handle - valueName - data -
JIException
public void winreg_SetValue(JIPolicyHandle handle,
java.lang.String valueName)
throws JIException
handle - valueName -
JIException
public 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
public void winreg_SetValue(JIPolicyHandle handle,
java.lang.String valueName,
int data)
throws JIException
handle - valueName - data -
JIException
public void winreg_DeleteKeyOrValue(JIPolicyHandle handle,
java.lang.String valueName,
boolean isKey)
throws JIException
handle - valueName - isKey -
JIException
public void winreg_SaveFile(JIPolicyHandle handle,
java.lang.String fileName)
throws JIException
handle - fileName -
JIException
public java.lang.String[] winreg_EnumKey(JIPolicyHandle handle,
int index)
throws JIException
handle - index -
JIException
public java.lang.Object[] winreg_EnumValue(JIPolicyHandle handle,
int index)
throws JIException
handle - index -
JIException
public void closeConnection()
throws JIException
JIException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||