Obviously, I’d need to use declares. I’m not very good with Windows declares so was wondering if someone could help point me in the right direction or perhaps someone is already using this.
I reached out to Christian but it doesn’t look like MBS has this at this time…
Ah. I didn’t see you needed .NET for that. Forget it then…
What I want to do is see if the WMI service is running and if not restart it. I have some requirements in my app for WMI to be running and I saw a situation with a customer today where WMI had crashed and was causing problems. Once I restarted it, things were fine.