public class WinregPipeFile extends IPCPipeFile
Pipe file connected to a remote Windows registry DCE/RPC service that can be used to retrieve, update and create values and keys in the remote registry.
| Constructor and Description |
|---|
WinregPipeFile(IPCSession sess,
DCEPacket pkt,
int handle,
String name,
int maxTx,
int maxRx)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeHandle(RegistryKey handle)
Close a hive or key.
|
RegistryKey |
createKey(RegistryKey parent,
String keyName)
Create a new key
|
void |
createValue(RegistryKey parent,
RegistryValue value)
Create a new registry value
|
void |
deleteKey(RegistryKey parent,
String keyName)
Delete a registry key
|
void |
deleteValue(RegistryKey parent,
String valueName)
Delete a registry value
|
RegistryValue |
getDefaultValue(RegistryKey key)
Return the default value for the specified key
|
RegistryKeyInfo |
getKeyInfo(RegistryKey handle,
String cls)
Return information about a registry key.
|
List<RegistryKey> |
getKeysForKey(RegistryKey parentKey)
Return the sub-keys for the specified registry key
|
RegistryValue |
getValue(RegistryKey key,
RegistryValue regval)
Return the value for the specified key and parameter
|
RegistryValue |
getValue(RegistryKey key,
String name)
Return the value for the specified key and parameter
|
List<RegistryValue> |
getValuesForKey(RegistryKey key)
Return the values for the specified registry key
|
RegistryKey |
openHKClassesRoot()
Open the HKEY_CLASSES_ROOT registry key on the remote server.
|
RegistryKey |
openHKCurrentUser()
Open the HKEY_CURRENT_USER registry key on the remote server.
|
RegistryKey |
openHKLocalMachine()
Open the HIVE_KEY_LOCAL_MACHINE (HKLM) registry key on the remote server.
|
RegistryKey |
openHKPerformanceData()
Open the HKEY_PERFORMANCE_DATA registry key on the remote server.
|
RegistryKey |
openHKUsers()
Open the HIVE_KEY_USERS (HKU) registry key on the remote server.
|
RegistryKey |
openKey(RegistryKey root,
RegistryKey key)
Open a registry key.
|
RegistryKey |
openKey(RegistryKey root,
String key)
Open a registry key.
|
RegistryKey |
openRootKey(int keyid)
Open a root key on the remote server
|
void |
shutdownServer(String msg,
int tmo,
boolean reboot,
boolean force)
Shutdown a remote system, and optionally reboot the system
|
checkStatus, ClosePipe, doDCERequest, doDCERequest, getBuffer, getCallId, getHandle, getMaximumReceiveSize, getMaximumTransmitSize, getNextCallId, getPacket, getPipeName, getRxBuffer, getSession, isClosed, setMaximumReceiveSize, setMaximumTransmitSize, toStringpublic WinregPipeFile(IPCSession sess, DCEPacket pkt, int handle, String name, int maxTx, int maxRx)
sess - SMBIPCSessionpkt - DCEPackethandle - intname - StringmaxTx - intmaxRx - intpublic final RegistryKey openHKLocalMachine() throws IOException, SMBException
IOExceptionSMBExceptionpublic final RegistryKey openHKUsers() throws IOException, SMBException
IOExceptionSMBExceptionpublic final RegistryKey openHKClassesRoot() throws IOException, SMBException
IOExceptionSMBExceptionpublic final RegistryKey openHKCurrentUser() throws IOException, SMBException
IOExceptionSMBExceptionpublic final RegistryKey openHKPerformanceData() throws IOException, SMBException
IOExceptionSMBExceptionpublic final RegistryKey openKey(RegistryKey root, String key) throws IOException, SMBException
handle - RegistryKeykey - StringIOExceptionSMBExceptionpublic final RegistryKey openKey(RegistryKey root, RegistryKey key) throws IOException, SMBException
handle - RegistryKeykey - RegistryKeyIOExceptionSMBExceptionpublic final void closeHandle(RegistryKey handle) throws IOException, SMBException
handle - RegistryKeyIOExceptionSMBExceptionpublic final RegistryKeyInfo getKeyInfo(RegistryKey handle, String cls) throws IOException, SMBException
handle - RegistryKeycls - StringIOExceptionSMBExceptionpublic final RegistryValue getValue(RegistryKey key, String name) throws IOException, SMBException
handle - RegistryKeyname - StringIOExceptionSMBExceptionpublic final RegistryValue getValue(RegistryKey key, RegistryValue regval) throws IOException, SMBException
handle - RegistryKeyregval - RegistryValueIOExceptionSMBExceptionpublic final RegistryValue getDefaultValue(RegistryKey key) throws IOException, SMBException
handle - RegistryKeyIOExceptionSMBExceptionpublic final List<RegistryValue> getValuesForKey(RegistryKey key) throws IOException, SMBException
key - RegistryKeyIOExceptionSMBExceptionpublic final List<RegistryKey> getKeysForKey(RegistryKey parentKey) throws IOException, SMBException
key - RegistryKeyIOExceptionSMBExceptionpublic final RegistryKey createKey(RegistryKey parent, String keyName) throws IOException, SMBException
parent - RegistryKeykeyName - StringIOExceptionSMBExceptionpublic final void deleteKey(RegistryKey parent, String keyName) throws IOException, SMBException
parent - RegistryKeykeyName - StringIOExceptionSMBExceptionpublic final void createValue(RegistryKey parent, RegistryValue value) throws IOException, SMBException
parent - RegistryKeyvalue - RegistryValueIOExceptionSMBExceptionpublic final void deleteValue(RegistryKey parent, String valueName) throws IOException, SMBException
parent - RegistryKeyvalueName - StringIOExceptionSMBExceptionpublic final void shutdownServer(String msg, int tmo, boolean reboot, boolean force) throws IOException, SMBException
msg - Stringtmo - intreboot - booleanforce - booleanIOExceptionSMBExceptionpublic final RegistryKey openRootKey(int keyid) throws IOException, SMBException
keyid - intIOExceptionSMBExceptionCopyright © 2005–2014 Alfresco Software. All rights reserved.