I am able to retrieve xs_base through a query() call, but that's filling a user-specified struct, and does not appear to allow keeping a handle on the object for later use, and I did not find an API for such calls in the crate.
How could I make those calls?
Edit: I finally found out exec_query_native_wrapper, which IIUC returns the objects handles. But that seems to be a long shot to actually call any methods on this. Looks like this should get through IWbemServices::ExecMethod(), which is not actually called in this crate.
I am trying to get the Rust equivalent to this python code (intended to run in a Xen guest with the Xen PV drivers installed):
I am able to retrieve
xs_base
through aquery()
call, but that's filling a user-specified struct, and does not appear to allow keeping a handle on the object for later use, and I did not find an API for such calls in the crate.How could I make those calls?
Edit: I finally found out exec_query_native_wrapper, which IIUC returns the objects handles. But that seems to be a long shot to actually call any methods on this. Looks like this should get through
IWbemServices::ExecMethod()
, which is not actually called in this crate.