public WindowsRegistry(boolean user) {
		if (!Platform.isWindows()) {
			throw new IllegalStateException("Only avaliable on a Windows platform");
		}
		if (user) {
			mRoot = Preferences.userRoot();
			mRootKey = Integer.valueOf(0x80000001);
		} else {
			mRoot = Preferences.systemRoot();
			mRootKey = Integer.valueOf(0x80000002);
		}
	}