Results 1 to 5 of 5

Thread: Registry

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2003
    Location
    The Future - Skynet
    Posts
    1,157

    Registry

    What is the quickest way to query the Registry? My friend told me today that you can use some type of management dll and it can treat it like a database table so you can use SELECT on it. Is this the quickest way?
    I'll Be Back!

    T-1000

    Microsoft .Net 2005
    Microsoft Visual Basic 6
    Prefer using API

  2. #2
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: Registry

    Your friend is talking about Windows Management Intrumentation. And you can surely use a Select statement to access registry. Take a look at MSDN.

    WMITasks: Registry
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2003
    Location
    The Future - Skynet
    Posts
    1,157

    Re: Registry

    Is there any quicker method? Do you recommend this method?
    I'll Be Back!

    T-1000

    Microsoft .Net 2005
    Microsoft Visual Basic 6
    Prefer using API

  4. #4
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: Registry

    Quote Originally Posted by Liquid Metal
    Is there any quicker method? Do you recommend this method?
    I am not sure if this method is faster or not, however I would only use WMI when I am comfortable with class names, etc used in WMI or else I would go with using APIs.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2003
    Location
    The Future - Skynet
    Posts
    1,157

    Re: Registry

    Lets say under HKEY_CURRENT_USER, I want to find all keys named DefaultIcon and replace the data with something else, do you know how to do that?

    I believe there is an RegEnumerate api but is that the best way to do it?

    Thank You so far!
    I'll Be Back!

    T-1000

    Microsoft .Net 2005
    Microsoft Visual Basic 6
    Prefer using API

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