I have been trying to use the WMI for several days now, but for some reason I cannot figure out how to implement it in my program.

I got a WMI code creater from the internet. I've search google. but I cannot get the program/visual studio to recognise it. Am I missing something?

I believe the code i use to fetch it is right. but how to send it to the wmi is probably my problem.