setkey.java~2~

来自「java制作的中文分词DLL文件」· JAVA~2~ 代码 · 共 25 行

JAVA~2~
25
字号
package com.xjt.nlp.word;
// 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 + =
减小字号Ctrl + -
显示快捷键?