Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with wmi
#9
It is how COM works. QM queries IDispatch interface because it is a special interface that can be used to call COM object methods that are unknown at compile time (no type library). At run time, when QM script calls a COM method through IDispatch, internally QM calls GetIDsOfNames and Invoke.

In WMI VB examples in MSDN there are no variable types specified. It means all variables are of VARIANT type (default in VB). COM variables are VARIANT(IDispatch) and in QM script can be assigned to IDispatch variables.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)