• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Windows Registry Access

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 [email protected] if you are interested.
Thank You.
Sanjib.
reply
    Bookmark Topic Watch Topic
  • New Topic