@REGBREAD[HKEY...\subkey\value,handle,length]: Read a value from the registry to a binary buffer.

 

 handle : A buffer previously created with @BALLOC.

 length : The length (in bytes) to write to the registry key.

 

If @REGBREAD succeeds, it returns "0", otherwise it returns the Windows error number.

 

If you are running a 64-bit version of Windows, you can access the 64-bit registry instead of the 32-bit registry by appending "_64" to the HKEY name.

 

If the key name begins with \\machinename, @REGBREAD opens the registry on a remote machine. The remote registry service must be running on the remote machine, and you must have access and permissions. The HKEY parameter can be one of the following keys:

 

HKEY_LOCAL_MACHINE

HKEY_PERFORMANCE_DATA

HKEY_USERS

 

Note: Remember to use quotes around any entry containing spaces or commas!

 

See @REGBWRITE and @BALLOC.