getkey.java~9~
来自「java制作的中文分词DLL文件」· JAVA~9~ 代码 · 共 25 行
JAVA~9~
25 行
// 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") ;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?