dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: How to read registry

  1. #1
    Join Date
    May 2008
    Posts
    36

    How to read registry

    I thought I will post this as a feedback in Miskter/Doctor Mark Russinovic's previousforum but I always geterro to setup an account

    I write an algorithm to read a subkey to subkey but it is so slow to complete the read

    I wonder how an F3 functions in regedit.exe

    You will give me hint to make it work that fast without utilizing CPU and memory, won';t you ?

    Thank you
    (forums have somanyreaders without many amember )

  2. #2
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: How to read registry

    Post some code so we can see what you are doing.

  3. #3
    Join Date
    May 2008
    Posts
    36

    Re: How to read registry

    Actually you don;'t need tolook at it, it's ugly and Iam shameful
    I think you can just let me know how Search Functiondone for aparticular key/subley inthe regedit.exe is do.
    Somesoftware do a searchinthe reg just take uponly 13000 as peaking memory
    Mine took 300000 to finish one key

  4. #4
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: How to read registry

    Regedit isn't open source (AFAIK), so I don't think somebody has the code for that.
    you don;'t need tolook at it, it's ugly
    Usually that is the problem of slow code.

    Make a simple project that only reads the keys so you can do a speedtest. If the simply project is much faster than your own code, you would need to rewrite your own code.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)