... in my windows register? Try to put: RegOpenKey( HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run", @hKey )? RegEnumValue( hKey, n, @cName, @uValue ) in regenum.prg to see if return 0 or 234 compiled with MSVC .
they are firewall informations like this long 150 to 170 characters obtained with compiling the example with bcc72: v2.10|Action=Allow|Active=TRUE|Dir=In|Protocol=6|Profile=Domain|App=G:\winclip\applicazioni\contab\contab.exe|Name=contab|Desc=contab|Defer=User| this is the key: RegOpenKey( HKEY_...
https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regenumvaluea Return Value If the function succeeds, the return value is ERROR_SUCCESS. If the function fails, the return value is a system error code. If there are no more values available, the function returns ERROR_N...
Hi at all. i have inserted the sample regenum.prg in a my program compiled with borland 7.2 and all is ok (RegEnumValue() return 0) if i compile the same program with visual c++ 2015 RegEnumValue() return 234 instead of 0 and doesn't work. any idea?
Hello Antonio, thank you. I have admin rights. RegEnumValue reports all the values fine but RegQueryValue( hKey, "ScrollHeight" , @uValue ) returns "Ff". Best regards, Otto
... But RegSetValue( hKey, "ScrollHeightn" ,-500 ) RegQueryValue( hKey, "ScrollHeight" , @uValue ) in my case does not work. RegEnumValue is working fine. Do you know a solution. Best regards, Otto #define HKEY_CURRENT_USER 2147483649#define ERROR_SUCCESS ...
* Fix: functions ReGetCharFormat() and RegGetSelection() incorrectly used hb_storvnl() instead of hb_stornl() * Fix: functions RegEnumKey() and RegEnumValue() incorrectly used hb_storvc() and hb_storvnl() instead of hb_storc() and hb_stornl() * Fix: functions RegQueryValueEx() and RegCreateKey() ...
Antonio, I had a look in the Internet and found this : RegEnumValue The RegEnumValue function enumerates the values for the specified open registry key. The function copies one indexed value name and data block for the key each time it is called. LONG ...