mysteriumnetwork / hyperv-myst-provision

Provisioning and distributing tools for HyperV Guest VM with myst exit node
0 stars 2 forks source link

Migrate to WMI #9

Closed Zensey closed 3 years ago

Zensey commented 3 years ago

Resolves #8

Guillembonet commented 3 years ago

Not sure if we should use libraries that don't seem very reliable like "github.com/gabriel-samfira/go-wmi", but also libraries for windows things seem to not be very common, so maybe it is our best option... We can discuss this with @mdomasevicius tomorrow!

Zensey commented 3 years ago

Not sure if we should use libraries that don't seem very reliable like "github.com/gabriel-samfira/go-wmi", but also libraries for windows things seem to not be very common, so maybe it is our best option... We can discuss this with @mdomasevicius tomorrow!

This library is just a thin wrapper around go-ole and some WMI classes/methods. There's nothing tricky with it. It might be non thread-safe as there are no tests for it, but multi-threading is non typical use-case for OLE/COM/WMI after all.