/* */ package NET.worlds.core; /* */ /* */ /* */ /* */ public class RegKey /* */ { /* */ public static final int CLASSES_ROOT = 0; /* */ /* */ /* */ public static final int CURRENT_USER = 1; /* */ /* */ /* */ public static final int LOCAL_MACHINE = 2; /* */ /* */ /* */ public static final int USERS = 3; /* */ /* */ /* */ public static final int KEYOPEN_READ = 0; /* */ /* */ /* */ public static final int KEYOPEN_WRITE = 1; /* */ /* */ public static final int KEYOPEN_CREATE = 2; /* */ /* */ private int hKey; /* */ /* */ /* */ static {} /* */ /* */ /* */ public static RegKey getRootKey(int type) /* */ throws RegKeyNotFoundException /* */ { /* 35 */ return new RegKey(getReservedKey(type)); /* */ } /* */ /* */ /* */ /* */ /* */ public RegKey(RegKey base, String subKey, int mode) /* */ throws RegKeyNotFoundException /* */ { /* 44 */ if (mode == 2) { /* 45 */ this.hKey = createKey(base.hKey, subKey); /* */ } else { /* 47 */ this.hKey = openKey(base.hKey, subKey, mode); /* */ } /* */ } /* */ /* */ /* */ /* */ /* */ /* */ public native String getStringValue(String paramString); /* */ /* */ /* */ /* */ /* */ /* */ public native boolean setStringValue(String paramString1, String paramString2, boolean paramBoolean); /* */ /* */ /* */ /* */ /* */ /* */ public native int getIntValue(String paramString); /* */ /* */ /* */ /* */ /* */ /* */ public native boolean setIntValue(String paramString, int paramInt); /* */ /* */ /* */ /* */ /* */ /* */ public native void close(); /* */ /* */ /* */ /* */ /* */ /* */ private static native int getReservedKey(int paramInt) /* */ throws RegKeyNotFoundException; /* */ /* */ /* */ /* */ /* */ private static native int openKey(int paramInt1, String paramString, int paramInt2) /* */ throws RegKeyNotFoundException; /* */ /* */ /* */ /* */ /* */ private static native int createKey(int paramInt, String paramString); /* */ /* */ /* */ /* */ /* */ public static native void nativeInit(); /* */ /* */ /* */ /* */ /* */ private RegKey(int hKey) /* */ { /* 109 */ this.hKey = hKey; /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\core\RegKey.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */