What is better method to use if I would like to provide the user with some information about my Hardware device.
Should I develop a proprietary COM Library or should I develop a WMI provider?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think that’s a no-brainer: WMI is the Microsoft-blessed way of providing performance and hardware information.
That should be the way you provide the information you describe. There’s plenty of precedent in the Win32_Computer and other hardware classes, which provide CPU details, memory size and so on (stuff that doesn’t change with the software running).
I say that since you specifically marked out ‘hardware device’. Don’t think that WMI is for reporting just software type things like memory usage or process lists.
There’s a large amount of software out there already specifically built to query WMI (including one of mine) so there’s no shortage of people who will know how to do it.