RE: Reading Windows-Registry from BlackBox

From: [at]} <johansson{>
Date: Fri, 9 Mar 2001 10:07:01 +0100

Hello,

Ther is no BlackBox abstraction for manipulating the full Windows registry.
(As you probably know HostRegistry can be used to manipulate the BlackBox
sub tree of the Windows registry.)

But by using the module WinApi you have access to most Windows API
functions. So, to for example open the root key in the Windows registry you
need to do something like:

IMPORT WinApi;

VAR res: INTEGER; keyHandle: WinApi.HKEY;

BEGIN
 ...
 res := WinApi.RegOpenKey(WinApi.HKEY_CLASSES_ROOT, , 0, WinApi.KEY_READ,
keyHandle);
 ...
END

The Windows API is not documented in the BlackBox documentation, but
Microsoft MSDN is a very good source of information about how to use WinApi.
The following link explains the use of the registry functions:

http://msdn.microsoft.com/library/psdk/winbase/regapi_59mb.htm

Hope this helps you a bit on the way!

Regards,
Bengt Johansson


> -----Original Message-----
> From: Zinn, Helmut [mailto:Helmut.Zinn{([at]})nowhere.xy
> Sent: Freitag, 9. März 2001 08:56
> To: blackbox{([at]})nowhere.xy
> Subject: Reading Windows-Registry from BlackBox
>
>
> Dear friends of BlackBox,
>
> does anybody know how two read the whole registry via a BlackBox program?
>
> Some background information:
>
> - Export the whole Registry via Regedit creates about 28 MBytes

> Unicode file
> (*.reg)
> - To open this file via BlackBox need about 30 seconds
> - To save this file as *.odc needs only 14 MBytes and to reopen the *.odc

> Regfile needs less then one second.
>
> I would like to use it for tracking registry change. A module for
> comparing
> two registry save set are already exist.
>
> Regards
>
> Helmut Zinn
>
> Have a look at http://home.t-online.de/home/a.h.zinn
> Send your inputs and comments to mailto:a.h.zinn{([at]})nowhere.xy
>
>
>
>
>
> Diese Mail wurde auf Viren ueberprueft
> Postmaster IG Metall 2000
> --------------------------------------------
>
> To unsubscribe from this mailing list, send a message containing
> the word "unsubscribe" to:
> blackbox-request{([at]})nowhere.xy
>
> To get a list of valid e-mail commands and instructions on their
> usage, send a message containing the word "help" to the above address.
>
> Send any problem reports or questions related to this email list
> to the list owner at
> owner-blackbox{([at]})nowhere.xy
>

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

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy
Received on Fri Mar 09 2001 - 09:07:01 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:44 UTC