|
Boost-Build : |
From: Bojan Resnik (resnikb_at_[hidden])
Date: 2006-09-08 03:44:13
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.
-- Bojan Resnik
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