[Migrated content. Thread originally posted on 22 October 2004]
Hello all,I'm trying to read Windows 2000 professional registry, but in open key HKEY_LOCAL_MACHINE i get the status code 161, i dont know which is, but in this part of code things work well:
set Tama?o-Clave to size of Valor-Clave
move "\\http\\shell\\open\\command" to Sub-Clave
inspect Sub-Clave replacing trailing spaces by low-values
Call "REG_QUERY_VALUE" using HKEY_CLASSES_ROOT
Valor-Clave
Tama?o-Clave
Sub-Clave
giving Status-Code
end-call
But not the same in this other:
set Tama?o-Clave to size of Valor-Clave
move "\\SOFTWARE\\Clients\\Mail\\Microsoft Outlook\\
- "Protocols\\mailto\\shell\\open\\command" to Sub-Clave
inspect Sub-Clave replacing trailing spaces by
low-values
Call "REG_QUERY_VALUE" using HKEY_LOCAL_MACHINE
Valor-Clave
Tama?o-Clave
Sub-Clave
giving Status-Code
end-call
The path in the registry is correct, i copy paste from registry, but maybe the error come from the different default open-registry-handle, HKEY_LOCAL_MACHINE and HKEY_CLASSES_ROOT. Maybe HKEY_LOCAL_MACHINE is closed (i tried to open it but nothing)? If someone can say me what means status code 161 or the exact problem, it will be of great help.
Thanks very much.
P.D: sorry for my english