I’d like to find out some hardware details on Windows. This is straightforward in Python:
import win32com.client obj = win32com.client.GetObject('winmgmts:Win32_Processor') # ... get the details ...
But searching for
getobject in the winapi crate doesn’t produce any results, so I don’t know if it is supported.
There’s also a com_rs crate, but it hasn’t been updated in more than a year and doesn’t have any examples.
Does anyone have some example code that would get me started?