I'm trying to set a value in the registry using this winapi call:
Private Declare Function RegSetValueEx Lib "advapi32" Alias "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, ByVal lpData As String, ByVal cbData As Long) As Long
lpValueName = "SOFTWARE\Microsoft\Office\9.0\PowerPoint\Security\Level"
dwType = REG_DWORD
the call is:
rc = RegSetValueEx(hKey, lpValueName, _
0, REG_DWORD, _
I'm trying to change the current value to 1. When done manually, the value is hex. When I do it with this call it changes it to 0x00000031
Apparently I'm not sending the value correctly. I also tried sending it as a long.