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, toStringpublic 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.IOExceptionSMBExceptionpublic final RegistryKey openHKUsers() throws java.io.IOException, SMBException
java.io.IOExceptionSMBExceptionpublic final RegistryKey openHKClassesRoot() throws java.io.IOException, SMBException
java.io.IOExceptionSMBExceptionpublic final RegistryKey openHKCurrentUser() throws java.io.IOException, SMBException
java.io.IOExceptionSMBExceptionpublic final RegistryKey openHKPerformanceData() throws java.io.IOException, SMBException
java.io.IOExceptionSMBExceptionpublic final RegistryKey openKey(RegistryKey root, java.lang.String key) throws java.io.IOException, SMBException
handle - RegistryKeykey - Stringjava.io.IOExceptionSMBExceptionpublic final RegistryKey openKey(RegistryKey root, RegistryKey key) throws java.io.IOException, SMBException
handle - RegistryKeykey - RegistryKeyjava.io.IOExceptionSMBExceptionpublic final void closeHandle(RegistryKey handle) throws java.io.IOException, SMBException
handle - RegistryKeyjava.io.IOExceptionSMBExceptionpublic final RegistryKeyInfo getKeyInfo(RegistryKey handle, java.lang.String cls) throws java.io.IOException, SMBException
handle - RegistryKeycls - Stringjava.io.IOExceptionSMBExceptionpublic final RegistryValue getValue(RegistryKey key, java.lang.String name) throws java.io.IOException, SMBException
handle - RegistryKeyname - Stringjava.io.IOExceptionSMBExceptionpublic final RegistryValue getValue(RegistryKey key, RegistryValue regval) throws java.io.IOException, SMBException
handle - RegistryKeyregval - RegistryValuejava.io.IOExceptionSMBExceptionpublic final RegistryValue getDefaultValue(RegistryKey key) throws java.io.IOException, SMBException
handle - RegistryKeyjava.io.IOExceptionSMBExceptionpublic final java.util.List getValuesForKey(RegistryKey key) throws java.io.IOException, SMBException
key - RegistryKeyjava.io.IOExceptionSMBExceptionpublic final java.util.List getKeysForKey(RegistryKey parentKey) throws java.io.IOException, SMBException
key - RegistryKeyjava.io.IOExceptionSMBExceptionpublic final RegistryKey createKey(RegistryKey parent, java.lang.String keyName) throws java.io.IOException, SMBException
parent - RegistryKeykeyName - Stringjava.io.IOExceptionSMBExceptionpublic final void deleteKey(RegistryKey parent, java.lang.String keyName) throws java.io.IOException, SMBException
parent - RegistryKeykeyName - Stringjava.io.IOExceptionSMBExceptionpublic final void createValue(RegistryKey parent, RegistryValue value) throws java.io.IOException, SMBException
parent - RegistryKeyvalue - RegistryValuejava.io.IOExceptionSMBExceptionpublic final void deleteValue(RegistryKey parent, java.lang.String valueName) throws java.io.IOException, SMBException
parent - RegistryKeyvalueName - Stringjava.io.IOExceptionSMBExceptionpublic final void shutdownServer(java.lang.String msg,
int tmo,
boolean reboot,
boolean force)
throws java.io.IOException,
SMBException
msg - Stringtmo - intreboot - booleanforce - booleanjava.io.IOExceptionSMBExceptionpublic final RegistryKey openRootKey(int keyid) throws java.io.IOException, SMBException
keyid - intjava.io.IOExceptionSMBExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.