Does anyone know of any good free/open source Windows Registry wrappers for VC++ which do not require MFC (i.e. can be run in a console app)?
ATL comes with a basic CRegKey wrapper that might suit your needs and is easy to use from a console application.
I wrote one a long time ago and put it on CodeProject; it's comprehensive but I'd do things a bit differently these days.
来源:https://stackoverflow.com/questions/1880275/good-windows-registry-wrapper-for-c