Wednesday, August 15, 2012

Crusing for Registry Interface Classes for use in win32 C++

I am looking at drragging some old c-ish win32 class that handles my registry IO forward into the current century. My option is either to re-write it, test, debug..etc or find some code that has the job done already.

My criteria would be:

STL aware ( at least for reasonable string type handling )
Fairly modern C++
Not include dependencies for stuff I don't use/want/have (MFC, Managed, .NET, ATL, etc)
Sane Exception design.
Unicode aware or at least cleanly written.
Secure use of std c functions. (_s variants)

My survey of the options is:
This is much more functionally complete but needs a complete re-write.  While interesting in that it uses the NTAPI calls.  The Unicode handling is a mess and needs a re-write along with the general structure and error handling philosophy.
No maintenance since 2006
This is fairly rudimentary and uses the Win32API calls. (RegCreateKey etc)
No maintenance since 1999
Looks like early Windows Classes Style of code. 
No maintenance since 2003
Written in a kind of C meets MFC style. Very Quick and dirty.
No maintenance since 2002
Written in old school MFC/ATL style Macro madness. Nice work back in the day but a pain to maintain or use going forward.
No maintenance since 2004.
Written in fairly modern c++. STL aware. Unit tests of some description.  All Win32API, fairly simple design.
No maintenance since 2005
This is an interesing style.  Seems to be fairly simple in terms of functionality. Written in older Win32 style with error codes and error flags rather than exceptions. Basic use of templates.
No maintenance since 2001
 This looks nice.
No maintenance since 2004
Registry wrapper with encryption. Interesting but overkill for my needs.
No maintenance since 2007
Yet another "simple" wrapper for the Registry. Pre STL and very old school. Not Unicode compliant.
No maintenance since 2000
A bit old school but well written.
Some comments posting fixes in 2009 for Unicode issues.
MFC audience.
No maintenance since 2001
Another "simple" class
No maintenance since 2004
Looks a bit MFC style. Some bugs in the comments.
No maintenance since 2005.
Uses templates so there is some hope.  A bit dated as far as functionality goes.
No maintenance since 2002
Looks like a simple read/write wrapper.
No maintenance since 2002.
Another simple read/write wrapper.
No maintenance since 2005.
No information that I can find about this.
Very basic functionality. Looks like write only.
No maintenance since 1998.
Looks nice, smells nice. Nice. 
Posted 2012. 

I think my search is over.  This is current generation code and frankly there is nothing better out there that I can turn up in this time.  I'm done.

No comments:

Post a Comment