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, toString
public 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
IOException
SMBException
public final RegistryKey openHKUsers() throws IOException, SMBException
IOException
SMBException
public final RegistryKey openHKClassesRoot() throws IOException, SMBException
IOException
SMBException
public final RegistryKey openHKCurrentUser() throws IOException, SMBException
IOException
SMBException
public final RegistryKey openHKPerformanceData() throws IOException, SMBException
IOException
SMBException
public final RegistryKey openKey(RegistryKey root, String key) throws IOException, SMBException
root
- RegistryKeykey
- StringIOException
SMBException
public final RegistryKey openKey(RegistryKey root, RegistryKey key) throws IOException, SMBException
root
- RegistryKeykey
- RegistryKeyIOException
SMBException
public final void closeHandle(RegistryKey handle) throws IOException, SMBException
handle
- RegistryKeyIOException
SMBException
public final RegistryKeyInfo getKeyInfo(RegistryKey handle, String cls) throws IOException, SMBException
handle
- RegistryKeycls
- StringIOException
SMBException
public final RegistryValue getValue(RegistryKey key, String name) throws IOException, SMBException
key
- RegistryKeyname
- StringIOException
SMBException
public final RegistryValue getValue(RegistryKey key, RegistryValue regval) throws IOException, SMBException
key
- RegistryKeyregval
- RegistryValueIOException
SMBException
public final RegistryValue getDefaultValue(RegistryKey key) throws IOException, SMBException
key
- RegistryKeyIOException
SMBException
public final List<RegistryValue> getValuesForKey(RegistryKey key) throws IOException, SMBException
key
- RegistryKeyIOException
SMBException
public final List<RegistryKey> getKeysForKey(RegistryKey parentKey) throws IOException, SMBException
parentKey
- RegistryKeyIOException
SMBException
public final RegistryKey createKey(RegistryKey parent, String keyName) throws IOException, SMBException
parent
- RegistryKeykeyName
- StringIOException
SMBException
public final void deleteKey(RegistryKey parent, String keyName) throws IOException, SMBException
parent
- RegistryKeykeyName
- StringIOException
SMBException
public final void createValue(RegistryKey parent, RegistryValue value) throws IOException, SMBException
parent
- RegistryKeyvalue
- RegistryValueIOException
SMBException
public final void deleteValue(RegistryKey parent, String valueName) throws IOException, SMBException
parent
- RegistryKeyvalueName
- StringIOException
SMBException
public final void shutdownServer(String msg, int tmo, boolean reboot, boolean force) throws IOException, SMBException
msg
- Stringtmo
- intreboot
- booleanforce
- booleanIOException
SMBException
public final RegistryKey openRootKey(int keyid) throws IOException, SMBException
keyid
- intIOException
SMBException
Copyright © 2005–2017 Alfresco Software. All rights reserved.