I have been trying to create a key in the registry with my program. This is what I have tried:
Code:
RegCreateKeyEx(HKEY_LOCAL_MACHINE, REG_KEY, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hKey, &Type)
Each time this is returning an error. I am not sure why this is happening.
Does anyone have any examples of opening, saving or getting information, and closing the registry so I could see how it is done. I tried this once on Windows 98, but it does not seem to be working on Windows 2000. I have been trying some of the code I found on MSDN, but it still is not working.
- Sean