📄 setkey.java~3~
字号:
// Class to write to a registry key on a local or remote machine
class SetKey{
int RegKey ; //Key value i.e. HKEY_CLASSES_ROOT
String MachineName ; //Machine name we want to interrogate
String KeyName ; //Name of key we want to set
String ValueName ; //Value of key we want to set
String KeyValue ; //Value we want to set the key to
int iResult ;
public native int RegDBSetKeyValueEx(String MachineName, int RegKey,
String KeyName, String ValueName, String KeyValue) ;
public static final int HKEY_CLASSES_ROOT = 0x80000000 ;
public static final int HKEY_CURRENT_USER = 0x80000001 ;
public static final int HKEY_LOCAL_MACHINE = 0x80000002 ;
public static final int HKEY_USERS = 0x80000003 ;
public static final int HKEY_CURRENT_CONFIG = 0x80000005 ;
public static final int HKEY_DYN_DATA = 0x80000006 ;
static
{
System.loadLibrary("RegConnect") ;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -