I am encountering an error code of value 87, which correlates to ERROR_INVALID_PARAMETER as per Winerror.h. The function call to the RegCreateKeyExA()
function is as follows:
RegCreateKeyExA(HKEY_LOCAL_MACHINE, "Software/Test/RegistryTest", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &createdKey, &dispositionValueOfCreatedKey);
where,
createdKey
is a variable of HKEY
type declared as HKEY createdKey;
dispositionValueOfCreatedKey
is a variable of DWORD
type declared as DWORD dispositionValueOfCreatedKey;
At the moment, I have not tried and am unaware of any means to mitigate this error as, I believe, the above function call satisfies all the parameter requirements mentioned in this MSFT documentation of the function.
Thanks in advance.