in reply to Windows API in perl?

The Windows API is documented in Microsoft's MSDN. It can be accessed via XS, Inline::C and Win32::API. WMI can be accessed via DBD::WMI.