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
Post a Comment