public interface IJIWinReg
This interface uses "Windows Remote Registry" and "Server" services and these must be running on target workstation.
| Modifier and Type | Interface and Description |
|---|---|
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 |
| Modifier and Type | Field and Description |
|---|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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,
String subKey,
int options,
int accessMask)
Creates a new key by name subKey under the handle.
|
void |
winreg_DeleteKeyOrValue(JIPolicyHandle handle,
String valueName,
boolean isKey)
Deletes a key or value specified by valueName.
|
String[] |
winreg_EnumKey(JIPolicyHandle handle,
int index)
Returns name and class (in that order) for the key identified by index under parent handle.
|
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,
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.
|
Object[] |
winreg_QueryValue(JIPolicyHandle handle,
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,
String fileName)
Saves registry entries from handle location to local fileName.
|
void |
winreg_SetValue(JIPolicyHandle handle,
String valueName)
Sets an empty name-value for a REG_NONE type.
|
void |
winreg_SetValue(JIPolicyHandle handle,
String valueName,
byte[][] data)
Sets name-value for a REG_MULTI_SZ type.
|
void |
winreg_SetValue(JIPolicyHandle handle,
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,
String valueName,
int data)
Sets name-value for a REG_DWORD type.
|
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
JIPolicyHandle winreg_OpenHKCR() throws JIException
JIExceptionJIPolicyHandle winreg_OpenHKCU() throws JIException
JIExceptionJIPolicyHandle winreg_OpenHKU() throws JIException
JIExceptionJIPolicyHandle winreg_OpenHKLM() throws JIException
JIExceptionJIPolicyHandle winreg_OpenKey(JIPolicyHandle handle, String key, int accessMask) throws JIException
handle - key - accessMask - type of access required.JIExceptionvoid winreg_CloseKey(JIPolicyHandle handle) throws JIException
handle - JIExceptionbyte[] winreg_QueryValue(JIPolicyHandle handle, int bufferSize) throws JIException
handle - bufferSize - JIExceptionObject[] winreg_QueryValue(JIPolicyHandle handle, String valueName, int bufferSize) throws JIException
handle - bufferSize - valueName - JIExceptionJIPolicyHandle winreg_CreateKey(JIPolicyHandle handle, String subKey, int options, int accessMask) throws JIException
handle - subKey - options - accessMask - JIExceptionvoid winreg_SetValue(JIPolicyHandle handle, String valueName, byte[][] data) throws JIException
handle - valueName - data - JIExceptionvoid winreg_SetValue(JIPolicyHandle handle, String valueName) throws JIException
handle - valueName - JIExceptionvoid winreg_SetValue(JIPolicyHandle handle, String valueName, byte[] data, boolean binary, boolean expand_sz) throws JIException
handle - valueName - data - binary - expand_sz - JIExceptionvoid winreg_SetValue(JIPolicyHandle handle, String valueName, int data) throws JIException
handle - valueName - data - JIExceptionvoid winreg_DeleteKeyOrValue(JIPolicyHandle handle, String valueName, boolean isKey) throws JIException
handle - valueName - isKey - JIExceptionvoid winreg_SaveFile(JIPolicyHandle handle, String fileName) throws JIException
handle - fileName - JIExceptionString[] winreg_EnumKey(JIPolicyHandle handle, int index) throws JIException
handle - index - JIExceptionObject[] winreg_EnumValue(JIPolicyHandle handle, int index) throws JIException
handle - index - JIExceptionvoid closeConnection()
throws JIException
JIExceptionCopyright © 2017 LSST. All rights reserved.