I need to be able to get the value of configuration variables. I know there is a way with VBA. However, VBA seems like a really old technology... "As of July 1, 2007 Microsoft will no longer offer VBA distribution licenses to new customers." I would also like to avoid sub launching a distinct process, as well as the possibility that VBA can be turned off.
I was hoping to find a way strictly using C - such as a registry or WMI query.