?
Solved

Registry Information

Posted on 1998-03-17
4
Medium Priority
?
154 Views
Last Modified: 2010-04-06
If I know the Value of a Key, how do i get the Key itself?  If I have a PCMCIA modem, and I eject it and reinsert it, the Key changes.  I need to get the value of this Key.  
0
Comment
Question by:jeffspence
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 2

Accepted Solution

by:
rene100 earned 600 total points
ID: 1360535
hi jeffspence, what's about that

first, get all key names with tregistry.getkeynames(tstrings)
then, you go down this list in a loop and set every key as current key with tregistry.openkey(keyname,false) and try
tregistry.getvaluenames(tstrings) on it. When you know the name
of the value, this method should work
hope this help

rene100

0
 
LVL 1

Expert Comment

by:Edo082297
ID: 1360536
Just a guess, does the key change any time or only if the key is kept open by your app ? Always use the CloseKey method as soon as possible.
If not, try to open the key one hierarcy step above and take rene100's solution.

Slash/d003303

0
 
LVL 4

Expert Comment

by:d003303
ID: 1360537
Rene, after submitting that question, we came up with the same solution!  we were hoping someone might have a better way, but I can't argue with someone that comes up with the exact same solution!! Thanks.
0
 

Author Comment

by:jeffspence
ID: 1360538
Why search through the entire registry? Is the value being stored to a different root? At least, set the RootKey. That way you aren't navigating through (potentially) megabytes of irrelevent key data.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month8 days, 11 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question