c++ - (How) Can I get GUID from an IWbemClassObject object? -


i want updates server apps , need know guid. started piece of code found here, can't figure out how guid in

tstring wmiqueryvalue(iwbemclassobject* pclsobj, lpcwstr szname)

for pclsobj. tried passing both "guid" , "guid" in szname, don't anything.

is there anyway guid way?

pclsobj win32_product, find out szname "__class" wmiqueryvalue. looked , class has identifyingnumber member, stores guid :)


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -