Groups search result 1 for RegCreateKeyEx "parameter undocumented" From: Niels Hede Pedersen (nhede@get2net.dk) Search Result 1 Subject: Re: What kind of class string does ::RegCreateKeyEx want? Newsgroups: microsoft.public.vc.mfc Date: View: (This is the only article in this thread) | Original Format 1999/01/23 Hi Will The purpose of the 'Class' parameter has puzzled me as well; anyway I think you can ignore it by simply specifying a NULL pointer for this parameter (or try it out). My guess is that this parameter has to do with COM, and is only relevant for keys under HKEY CLASSES ROOT. I know positively that it will work if you specify any odd string for that parameter, like "Why is this parameter undocumented ?" regards Niels Will Pittenger wrote in message <36A7822E.94101C58@infogenic.net>... I am attempting to write a call to ::RegCreateKeyEx. However, I do not understand what it wants for the third parameter (a LPTSTR listed in the help file as "lpClass"). The only description that I can find for it is that Windows ignores the class string if the key already exists. What is the class string used for? Do I need to specify it? Is it interpreted somehow? The reason that I am attempting to use ::RegCreateKeyEx instead of the CWinApp INI/registry functions is that the CWinApp functions do not appear to support subkeys under the main application key. Also, I do not see a way to control whether I would be accessing the HKEY LOCAL MACHINE or HKEY CURRENT USER branch.