|
-
December 15th, 2008, 11:46 AM
#6
Re: Accessing "Win32_DeviceBus" properties
Sorry, looks like the "Antecedent" property is actually a string, not an IUnknown pointer.
So that string is an "object path", which describes a unique object instance. You use IWbemServices::GetObject() to get an object instance based on its path.
Code:
IWbemClassObject *pWin32BusObj;
hr = pSvc->GetObject(vtProp.bstrVal, WBEM_FLAG_RETURN_WBEM_COMPLETE, 0,
&pWin32BusObj, 0);
http://msdn.microsoft.com/en-us/libr...09(VS.85).aspx
http://msdn.microsoft.com/en-us/libr...50(VS.85).aspx
gg
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|