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,
java.lang.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,
java.lang.String keyName)
Create a new key
|
void |
createValue(RegistryKey parent,
RegistryValue value)
Create a new registry value
|
void |
deleteKey(RegistryKey parent,
java.lang.String keyName)
Delete a registry key
|
void |
deleteValue(RegistryKey parent,
java.lang.String valueName)
Delete a registry value
|
RegistryValue |
getDefaultValue(RegistryKey key)
Return the default value for the specified key
|
RegistryKeyInfo |
getKeyInfo(RegistryKey handle,
java.lang.String cls)
Return information about a registry key.
|
java.util.List |
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,
java.lang.String name)
Return the value for the specified key and parameter
|
java.util.List |
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,
java.lang.String key)
Open a registry key.
|
RegistryKey |
openRootKey(int keyid)
Open a root key on the remote server
|
void |
shutdownServer(java.lang.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, java.lang.String name, int maxTx, int maxRx)
sess
- SMBIPCSessionpkt
- DCEPackethandle
- intname
- StringmaxTx
- intmaxRx
- intpublic final RegistryKey openHKLocalMachine() throws java.io.IOException, SMBException
java.io.IOException
SMBException
public final RegistryKey openHKUsers() throws java.io.IOException, SMBException
java.io.IOException
SMBException
public final RegistryKey openHKClassesRoot() throws java.io.IOException, SMBException
java.io.IOException
SMBException
public final RegistryKey openHKCurrentUser() throws java.io.IOException, SMBException
java.io.IOException
SMBException
public final RegistryKey openHKPerformanceData() throws java.io.IOException, SMBException
java.io.IOException
SMBException
public final RegistryKey openKey(RegistryKey root, java.lang.String key) throws java.io.IOException, SMBException
handle
- RegistryKeykey
- Stringjava.io.IOException
SMBException
public final RegistryKey openKey(RegistryKey root, RegistryKey key) throws java.io.IOException, SMBException
handle
- RegistryKeykey
- RegistryKeyjava.io.IOException
SMBException
public final void closeHandle(RegistryKey handle) throws java.io.IOException, SMBException
handle
- RegistryKeyjava.io.IOException
SMBException
public final RegistryKeyInfo getKeyInfo(RegistryKey handle, java.lang.String cls) throws java.io.IOException, SMBException
handle
- RegistryKeycls
- Stringjava.io.IOException
SMBException
public final RegistryValue getValue(RegistryKey key, java.lang.String name) throws java.io.IOException, SMBException
handle
- RegistryKeyname
- Stringjava.io.IOException
SMBException
public final RegistryValue getValue(RegistryKey key, RegistryValue regval) throws java.io.IOException, SMBException
handle
- RegistryKeyregval
- RegistryValuejava.io.IOException
SMBException
public final RegistryValue getDefaultValue(RegistryKey key) throws java.io.IOException, SMBException
handle
- RegistryKeyjava.io.IOException
SMBException
public final java.util.List getValuesForKey(RegistryKey key) throws java.io.IOException, SMBException
key
- RegistryKeyjava.io.IOException
SMBException
public final java.util.List getKeysForKey(RegistryKey parentKey) throws java.io.IOException, SMBException
key
- RegistryKeyjava.io.IOException
SMBException
public final RegistryKey createKey(RegistryKey parent, java.lang.String keyName) throws java.io.IOException, SMBException
parent
- RegistryKeykeyName
- Stringjava.io.IOException
SMBException
public final void deleteKey(RegistryKey parent, java.lang.String keyName) throws java.io.IOException, SMBException
parent
- RegistryKeykeyName
- Stringjava.io.IOException
SMBException
public final void createValue(RegistryKey parent, RegistryValue value) throws java.io.IOException, SMBException
parent
- RegistryKeyvalue
- RegistryValuejava.io.IOException
SMBException
public final void deleteValue(RegistryKey parent, java.lang.String valueName) throws java.io.IOException, SMBException
parent
- RegistryKeyvalueName
- Stringjava.io.IOException
SMBException
public final void shutdownServer(java.lang.String msg, int tmo, boolean reboot, boolean force) throws java.io.IOException, SMBException
msg
- Stringtmo
- intreboot
- booleanforce
- booleanjava.io.IOException
SMBException
public final RegistryKey openRootKey(int keyid) throws java.io.IOException, SMBException
keyid
- intjava.io.IOException
SMBException
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.