Hi Folks! VJ++ is offering two classes for accessing Windows Registry namely com.ms.wfc.app.RegistryKey & com.ms.wfc.app.Registry I have written a class using the methods in them.. but i am clueless on compiling and running them. Is it possible at all since WFC is involved? i mean one ends up getting a windows app. instead of a .class file Moreover from the command prompt i find noway to run the program... Can any body suggest a better way? Like writing native C++ code first and then using JNI. I need to access two funtions from Win API called RegQueryValueEx() and RegConnect() Folks can u chip in some details.. study material on web or sample code etc.. does SUN support any packages for Registry access like Microsoft is doin'? TIA Prasad
I haven't tried it, but in Horstmann and Cornell's book Core Java 2 - Volumne II, chapter eleven has a complete example of accessing the registry through java and native methods.
Prasad, I can provide with you some code samples if you want. I used C++/Win32 APIs and JNI to do this. I am not putting the code here as it might be a lot of clutter and may need some explaining. Please e-mail me at [email protected] if you are interested. Thank You. Sanjib.