Skip to main content

[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

[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
Error code 161 is a Win32 error code meaning "The specified path is invalid".

You can get a list of Win32 error numbers and brief explanations from:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/system_error_codes.asp

[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
I guess this implies the key you try to use is incomplete, or does not exist.
the hive HKEY_LOCAL_MACHINE does for instance not have the subkey:

\\http\\shell\\open\\command

Hence, it is logical that you get the error path not found.

I suggest you verify your key.

[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
ciacsl,
What you are looking for is in the key HKEY_CLASSES_ROOT\\HTTP\\shell\\open\\command

Try that instead.

[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
ciacsl,
What you are looking for is in the key HKEY_CLASSES_ROOT\\HTTP\\shell\\open\\command

Try that instead.