- JNIRegistry
- JWinAPI
JWinAPI is even more versatile and Powerful because it is not only allowing to access Registry from java but also allows you to use almost all Windows API in Java Directly just by including this API in your Project.
There are certain important functionalities in Win32 API like getting Window handles, Spawning new process, killing process, Send Keystrokes, Tweaking Registry, Logging lots and lots more.
Follow the listed steps:
- Visit this page
- Download copy of JWinAPI
- Install the using setup
- Include JWinAPI.jar in your Project Library.
- Done!
Code: Select all
java -jar JWinAPI.jar
Code: Select all
WinAPI wapi = new JWinAPI();
wapi.doMessageBox("JWinAPI DLL has been loaded successfully!",
"JWinAPI", MBConstants.MB_OK + MBConstants.MB_ICONASTERISK );
Code: Select all
// write an int value
wapi.doWriteToRegistry(REGConstants.HKEY_CURRENT_USER,
"Software\\ROBOT.LK\\regsample",
"javaINTValue", REGConstants.REG_DWORD, new Integer(876543) ) ;