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

Support for methods in IWbemClassWrapper #18

Open
siriux opened this issue Jun 24, 2020 · 2 comments
Open

Support for methods in IWbemClassWrapper #18

siriux opened this issue Jun 24, 2020 · 2 comments

Comments

@siriux
Copy link

siriux commented Jun 24, 2020

It would be really helpful to get support for methods on IWbemClassWrapper like we have for properties.

I'm thinking of just two methods, a list_methods and exec_method. This would allow to use WMI for than just retrieve information.

@ohadravid
Copy link
Owner

I agree that would be useful. How do you imagine argument passing/return values?

I also wanted to look at com-rs since it might have better ways to handle these kind of operations.

@siriux
Copy link
Author

siriux commented Jul 2, 2020

I was thinking of something like an array of Variants for the arguments, but I don't know much about the windows API so maybe it's not a good way of doing it.

I just runt into this problem when trying to port a Powershell script to Rust just to see if it could be done.

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