开发者

How to Read from Registry "Name" using VC++?

开发者 https://www.devze.com 2023-02-14 08:22 出处:网络
I want to Read from Registry the Name.how i can do this using VC++ ? Ex : I have one folder called ABC in Registry under that i have 3 enteries

I want to Read from Registry the Name.how i can do this using VC++ ?

Ex : I have one folder called ABC in Registry under that i have 3 enteries Name , Type, Data.

Now i want to read all Name one by one

Name     Type        Data
V:\      REG_SZ      \\124.158.14.74\CIFS
J:\       REG_SZ       \\124.158.14.74\CIFS

In my case 开发者_如何学运维Name is nothing but drive name's i want to read it one by one. Any help is appreciated.


I think RegEnumValue is the API you are looking for.


See the SHEnumKeyEx function for simplicity


See the following link, in enumerating registry in windows. Hope this helps.

http://msdn.microsoft.com/en-us/library/windows/desktop/ms724256%28v=vs.85%29.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号