Results 1 to 5 of 5

Thread: Registry==Retrieve Key Name

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    Kitchener Ontario Canada
    Posts
    20

    Unhappy

    alright., I have looked all over the place, throuhg all registry demo projects and cant find what im looking for.,

    I would like to display "sub Keys" from wtihin a registry Key,.

    eg. we have
    'HKEY_USERS\.DEFAULT\Software\Mirabilis\ICQ\Owners

    and under the "owners" key ,. we have a specific number of keys under it.,

    I would like to display the total numbr of keys or "sub-keys" , as i call them., into my project that are contained within the "owners" key. or whatever other key for that matter., **Please do not Mistake "keys" for Strings and DWORDS... when i say "keys" i am refering to those "Folder Icons"..

    I only need to go down one level., for example i dont need to go to 2 levels or more under the original Key.,.,

    Im sorry if this is confusing,..,


    thanx in advance!

  2. #2
    Lively Member
    Join Date
    Sep 2000
    Location
    NC, USA
    Posts
    102

    Question a starting point

    I think you can use GetPrivateProfileSectionNames. I am not sure. It has been a long time since I have used it like that. I will try to look it up and reply again. I really cant remember off hand.

    Sorry, Hope that helped a little,
    KillemAll

  3. #3
    Lively Member
    Join Date
    Sep 2000
    Location
    NC, USA
    Posts
    102

    Talking Found it

    I still think that GetPrivateProfileSectionNames would work but this seems to be a better solution. So without futher adue <sp>, Here you go...

    http://www.vb-world.net/registry/registry3/index2.html

    Hope that helps,
    KillemAll

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I have a registry module on my homepage containing the function Subkeys that returns an array of subkeys inside a specified key, if you don't get it work with what KillemAll suggested.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    You might want to look at the code I posted. There is a procedure will show you how to grab keys.

    http://forums.vb-world.net/showthrea...threadid=21286
    Chemically Formulated As:
    Dr. Nitro

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width