473,394 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

find key name if a value name is known in VS2005

How do I find the Key Name if a Value Name (String Name) is known?
For example:
I have a Value Name (String Name) "MyValueName" somewhere under the Key Name
"SOFTWARE\\ATI". ATI has nested keys

+SOFTWARE
+ATI
+KeyA
+KeyB
+KeyB1
+KeyB2
+KeyC
Oct 27 '08 #1
3 1157
My questions is about Windows Registry

"Rick" wrote:
How do I find the Key Name if a Value Name (String Name) is known?
For example:
I have a Value Name (String Name) "MyValueName" somewhere under the Key Name
"SOFTWARE\\ATI". ATI has nested keys

+SOFTWARE
+ATI
+KeyA
+KeyB
+KeyB1
+KeyB2
+KeyC
Oct 27 '08 #2
There is on direct API or support to do that. You need to write code
which finds/reads all keys, it's sub-keys and values.

Rick wrote:
My questions is about Windows Registry

"Rick" wrote:

>How do I find the Key Name if a Value Name (String Name) is known?
For example:
I have a Value Name (String Name) "MyValueName" somewhere under the Key Name
"SOFTWARE\\ATI". ATI has nested keys

+SOFTWARE
+ATI
+KeyA
+KeyB
+KeyB1
+KeyB2
+KeyC
Oct 28 '08 #3
Could you please provide me some sample code or link where sample code can be
found?

"Ashutosh Bhawasinka" wrote:
There is on direct API or support to do that. You need to write code
which finds/reads all keys, it's sub-keys and values.

Rick wrote:
My questions is about Windows Registry

"Rick" wrote:

How do I find the Key Name if a Value Name (String Name) is known?
For example:
I have a Value Name (String Name) "MyValueName" somewhere under the Key Name
"SOFTWARE\\ATI". ATI has nested keys

+SOFTWARE
+ATI
+KeyA
+KeyB
+KeyB1
+KeyB2
+KeyC
Oct 28 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Wim Roffal | last post by:
Is it possible to use javascript to change the name of a field in a form? Thanks, Wim
5
by: Samuel L Matzen | last post by:
Hi NG, I have an Argb color stored in a database as a 32 bit integer. If this color is a KnownColor, is there any way I can get the known color name so I can display the known color name on...
0
by: Rob Dob | last post by:
Hi, I have a VS2003 C# asp.net project that has been converted into a VS2005 project. Everything seemed to work well until I make a modification to anything within the Component Designer...
2
by: Jim | last post by:
I am trying to figure out how to embed Python in a little C++ Windows console app. Here's the code: // Py_Initialize(); Py_InitializeEx(0); PyRun_SimpleString("from win32com.client import *");...
7
by: Nemisis | last post by:
Hi everyone, Can anyone tell me if it is possible to pass in a property of an object into a sub, and within that sub, find out the name of the item that was passed along with the property name??...
8
by: Jim Hubbard | last post by:
(I know this is a great big newsgroup no-no, but I originally only posted to microsoft.public.dotnet.general and that newsgroup doesn't seem to have near the readership of these - so I thought I'd...
2
by: moondaddy | last post by:
I had to repost this because I had to update and change my msdn alias. I will re-ask the question and clarify a few things that were not clear before. This code is all executed on my dev...
22
by: Steve Richter | last post by:
Does the .NET framework provide a class which will find the item in the collection with a key which is closest ( greater than or equal, less than or equal ) to the keys of the collection? ex:...
2
by: slizorn | last post by:
hi guys, i need to make a tree traversal algorithm that would help me search the tree.. creating a method to search a tree to find the position of node and to return its pointer value basically i...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.