Hello, I am new in this realm. I do not have any experience with DLLs from any language. I want to get device properties from Win32_PnPEntity. I need available com ports with device names. I found workaround for this:
cmd := exec.Command(“wmic”, “path”, “win32_PNPEntity”, “where”, “Name like ‘%(COM%’”, “get”, “Name”)
out := bytes.Buffer{}
cmd.Stdout = &out
cmd.Stderr = &out
err := cmd.Run()
I want to use dll for this pupose, because, I think it’s the right way, + I want to understand more about go ways with libraries.
Needed DLL libraries is CIMWin32.dll. I dont know how to get win32_PNPEntity data from this dll. Can anyone give me tips on how to understand what to do? How to get dll data, how to use it and so on…
Thanks.