The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: donkey on July 12, 2005, 05:41:45 AM

Title: Registry Browser
Post by: donkey on July 12, 2005, 05:41:45 AM
My current project requires that the user choose registry keys and since I like GUI applications I decided to use RegEdit as a template for the selection. I chose RegEdit because most "power users" are already familiar with it.

The attached file has the source and executable. As with all my published source you are free to use it however you like, even in commercial applications. I would ask (though do not require) that it is not used in software released under the GPL or any license issued by the Free Software Foundation Free means Freedom

The module is no where near complete and has not been debugged yet but I thought I would post it to get ideas and bug reports as it is complicated to test completely.

[attachment deleted by admin]
Title: Re: Registry Browser
Post by: Mark Jones on July 12, 2005, 01:44:44 PM
MemProof likes it, nice job. :bg
Title: Re: Registry Browser
Post by: zooba on July 13, 2005, 12:34:03 AM
I like it  :U Much faster than regedit too; will it be as/more functional? Or alternatively can someone use this as a base to build a complete editor?
Title: Re: Registry Browser
Post by: donkey on July 13, 2005, 03:18:58 AM
Quote from: zooba on July 13, 2005, 12:34:03 AM
I like it  :U Much faster than regedit too; will it be as/more functional? Or alternatively can someone use this as a base to build a complete editor?

You can use it as you please, there are no restrictions on my code. My version will only allow you to select a value name but it is expandable to do what ever you like.
Title: Re: Registry Browser
Post by: donkey on July 13, 2005, 11:51:41 PM
I have added the treeview buttons for f0dder, though you must select an item before they will appear, a fair compromise I guess that did not require changing any code :)

I have also added images to the listview to indicate the type of data
Title: Re: Registry Browser
Post by: zooba on July 14, 2005, 02:14:30 AM
Yes. I notice the speed difference is because Regedit enumerates all Keys when you expand rather than click on.

Also, I've noticed that if a key is empty a "Default: (Value Not Set)" appears which is good. However, if there are any values in there and the default is not set, it doesn't appear. Is this the intended behavior? (I haven't looked through the code yet) It seems inconsistent to me, not necessarily with regedit but with other keys in the tree.
Title: Re: Registry Browser
Post by: donkey on July 14, 2005, 04:36:28 AM
I was not particularly interested in the "Value not set" keys. They are simply NULL entries in the table and do not actually enumerate so I put them in if there were no keys present but ignored them if there were. They can be included simply enough but for my purpose I didn't need them.