Boost logo

Boost-Build :

From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2006-09-08 10:18:44


Bojan Resnik wrote:
> Sometimes, especially when needing to detect installed versions of
> some third-party program, I need functions to enumerate registry
> subkeys or registry values of a given key. I have written two new
> builtin functions W32_REGKEYS and W32_REGVALUES which, given a
> registry key path, return lists of its subkeys and values,
> respectively.
>
> Example:
> for local subkey in [ W32_REGKEYS "HKLM\\Software\\Microsoft" ]
> {
> ECHO $(subkey) ;
> }
>
> for local value in [ W32_REGVALUES "HKCU\\Environment" ]
> {
> ECHO $(value) ;
> }
>
> Attached are patches to builtin.c and w32_getreg.c that add these new
> functions to bjam.

How are those different from the existing "W32_GETREG" builtin?

See the bottom of
<http://engineering.meta-comm.com/resources/cs-win32_metacomm/doc/html/jam/language.html#jam.language.rules.builtins>.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk