• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Windows Registry Access  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 staluk@yahoo.com if you are interested.
Thank You.
Sanjib.
 
See ya later boys, I think I'm in love. Oh wait, she's just a tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!