?? reg.java
字號:
/*
* reg.java
*
* Created on 2003年4月26日, 上午9:33
*/
/**
* @author ITBUG
* @version 2.0
*/
public class reg{
static {
System.loadLibrary("reg");
}
private native boolean userReg(String regCode);
private native String getNetMac();
private native String getDiskSeriel();
private native String getCpuId();
public static void main (String args[]) {
reg myApp=new reg();
boolean retFlag=myApp.userReg("#|$d3)d/0Ut{%C~[0"); //軟件注冊函數 return true-注冊成功 return false-注冊失敗
System.out.println("mac: "+myApp.getNetMac()); //獲取網卡MAC地址
System.out.println("diskser: "+myApp.getDiskSeriel());//獲取硬盤物理序號
System.out.println("cpuid: "+myApp.getCpuId()); //獲取CPU-ID
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -