📄 getkey.java~3~
字号:
// Class to read a registry key from a local or remote machine
public class GetKey{
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 read
String ValueName ; //Value of key we want to read
String KeyValue ; //Return value from key
public native String RegDBGetKeyValueEx(String MachineName, int RegKey,
String KeyName, String ValueName) ;
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") ;
// System.load("D:\\Soft\\IBM\\RegConnect\\Debug\\RegConnect") ;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -