https://bugs.winehq.org/show_bug.cgi?id=47782
--- Comment #1 from Hans Leidekker hans@meelstraat.net --- (In reply to dridi.boukelmoune from comment #0)
$ mcs /reference:System.Management.dll test.cs $ ./test.exe Win32_OperatingSystem # OK $ ./test.exe Win32_PhysicalMemory # OK $ ./test.exe Win32_SoundDevice # OK $ ./test.exe Win32_Processor # System.InvalidCastException $ ./test.exe Win32_VideoController # System.InvalidCastException $ ./test.exe Win32_DesktopMonitor # System.InvalidCastException $ ./test.exe Win32_DisplayControllerConfiguration # SIGSEGV
The System.InvalidCastException failures are due to wrong CIM to VARIANT type conversions for some of the properties. I've submitted a patch to fix them.
The SIGSEGV failure happens because that class is not implemented. I've submitted another patch that turns it into a more graceful System.Management.ManagementException, which includes an error code.