Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Nov 18, 2017 2:41 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: WMI alternative to GetRelated method
PostPosted: Tue Feb 26, 2013 5:02 pm 
Offline

Joined: Sat Jan 12, 2008 12:54 pm
Posts: 36
Using the Monkeybread Win plugin for WMI, I needed to relate the disk drive ID (from Win32_LogicalDisk class) to the partition ID (from Win32_DiskPartition). The ordinary way to do this is to use the GetRelated method of a ManagementClass object, which is not included in the plugin. I got it done by SELECTing the logical disk objects, then issuing an "ASSOCIATORS OF" query for each of them and looking through the results for the associated Win32_DiskPartition object. Hope this helps someone.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group