many thanks Antonio for your answer.
i have tried many options in the code below but i have had no success.
(i have tried many buffer dimensions till number of 32,767)
i obtain always the error code 234
please can you suggest me the right way so the code work fine?
marzio
- Code: Select all Expand view
#define HKEY_LOCAL_MACHINE 2147483650
#define ERROR_SUCCESS 0
function Main()
local hKey, cName, uValue := 2048, n := 0
local lpData, lpcbData := 2048
RegOpenKey( HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run", @hKey )
while RegEnumValue( hKey, n++, @cName, @uValue,,, @lpData, @lpcbData ) == ERROR_SUCCESS
MsgInfo( cName )
MsgInfo( uValue )
end
RegCloseKey( hKey )
return nil