The Road to Delphi – Commonly when we need use the WMI, we import the Microsoft WMIScripting Library from delphi using the Import Component Wizard, but depending on the version of windows that we use the result can be different, although the version showed by the wizard is the same. Check this sample. if you uses Windows 7 and Delphi 2007 to import the Microsoft WMIScripting Library as is shown in this picture. Delphi will generate a unit called WbemScripting_TLB wich is based in the C:\Windows\system32\wbem\wbemdisp.TLB file. Now if you look the ISWbemObjectSet interface the declaration will look like this ...
Visits by Source
Users who voted for this posting