Sign in to follow this  
Followers 0
Hannes

Regenumkey Returns Wrong @error Flag ?

4 posts in this topic

example:

$hivekey_nn = RegEnumKey("HKEY_USERS\Network",1)

MsgBox(0,"",@error & @CRLF & $hivekey_nn)

-----------------------------------

with beta 3.1.1.120 i returned @error = 3, while trying to read a subkey, that doesn't exist.

As documented this should be 1 ("... unable to open requested key.").

I am wrong ?

Hannes

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

example:

$hivekey_nn = RegEnumKey("HKEY_USERS\Network",1)

MsgBox(0,"",@error & @CRLF & $hivekey_nn)

-----------------------------------

with beta 3.1.1.120 i returned @error = 3, while trying to read a subkey, that doesn't exist.

As documented this should be 1 ("... unable to open requested key.").

I am wrong ?

Hannes

HI,

returns 1 to me. :think:

So long,

Mega

Edit: Forget to say using 119 !!!

Edited by th.meger

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

For my testing (key does not exist):

3.1.1.0 release returns 1

3.1.1.120 beta returns 3

Share this post


Link to post
Share on other sites

I am on the process of debugging some Netware problem so I change temporary the @error.

0 is still successfull.

all other are still errors.

I will put them back in the documented way when I get the solution. :think:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0