On Mon, Feb 13, 2023 at 8:20 AM Ondrej Pokorny via fpc-devel
<[email protected]> wrote:

> I wouldn't publish the HKEY property but create an own enumeration for it:
>
> TRegKey = (rgClassesRoot, rgCurrentUser, ....)
>
...
>
> Then make a simple transformation to HKEY:
>
> RegKeyToHKey: array[TRegKey] of HKEY = (HKEY_CLASSES_ROOT,
> HKEY_CURRENT_USER, ...);

Yep, thought of that as too.
Perhaps the best options.
Thanks.


-- 
Bart
_______________________________________________
fpc-devel maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to