Greetings!
I am working with an undocumented third-party COM server via WMI interface.
var
ACPIObj : ISWbemObject;
DataPackProp : ISWbemProperty;
OutParam: ISWbemObject;
PropValue : Variant;
begin
//...
OutParam:=ACPIObj.ExecMethod_('GetObjectData', nil, 0, nil);
if OutParam <> nil then begin
DataPackProp:=OutParam.Properties_.Item('DataPack’,0);
PropValue:=DataPackProp.Get_Value;
//..
end;
After executing a method called ‘GetObjectData’, PropValue is actually storing an IDispatch interface, since it has the VarType of varDispatch. Is there a way of enumerating all the properties stored in the PropValue variable?
Thank you!