I'm playing around with the C++ registry functions, and I'm trying to get RegCopyTree working, but every time I try I get an error like
destinationKeyPathNative, 0, NULL, 0, 0, NULL,
Destination key handle should have write access, to be able to copy to it. Calling
RegCreateKeyEx() without specifying access mode either fails or doesn't grant write access. Try with
KEY_CREATE_SUB_KEY as sixth argument.