I know how to use RegOpenKeyEx.
The question is that all the examples I have seen seem to return data to character buffer. But if I have a key that stores REG_DWORD or REG_BINARY, why am I using a character buffer?
For instance, if I want a key called fileSize = 5000 stored as REG_DWORD, I would need to read it into a char buffer and then convert to a number, say using atoi?
So what is the point of REG_DWORD and REG_BINARY?