Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Help #32

Open
saupallucidity opened this issue Oct 2, 2023 · 1 comment
Open

Need Help #32

saupallucidity opened this issue Oct 2, 2023 · 1 comment

Comments

@saupallucidity
Copy link

I am currently working on implementing some Wmi operations in my cpp code.
Example of an operation I would like to do is
Add a physicalDisk with deviceId 3 to storage pool with a friendlyname "TestStoragePool". Now the AddPhysicalDisk method of StoragePool class takes PhysicalDisks as input.
I was exploring the existing methods available in the repo and the executeWmiMethod currently only takes the class name and method names as params along with a map of params to be passed further to ExecMethod. I am looking to add how I can pass objects and conditions like deviceId and StoragePool.
Looking for guidance around how to achieve this, would be happy to contribute back if additional work is needed for adding support.

@Thomas-Sparber
Copy link
Owner

Hi saupallucidity, this lib unfotunately is only able to read data from WMI you can not (yet) execute methods on WMI objects.
But you are very welcome to dig into my code and come up with a possible solution on how to accomplish this.
I already wanted to implement this but it seemed to be very complex and there were no requirements for it yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants