Agree++
The "WMI Delphi Code Creator" (written in Delphi) is a great example of this.
"The WMI Delphi Code Creator (WDCC), allows you to generate Object Pascal, Oxygene, C++ and C# code to access the WMI (Windows Management Instrumentation) classes, events and methods. Also includes a set of tools to explorer and Query the content of the WMI."
Note that Object Pascal == Delphi == FreePascal (generally)