I am using EnableStatic to set the ip and it works. All i need now is to get the return value. Below is the function call:
hr = pNamespace->ExecMethod(InstancePath, methodName_setDhcp, 0, NULL,pInInstDHCP, &pOutInst, NULL);
now pOutInst is a IWbemClassObject. To get the data is pointing to i am using the Get property something like this:
pOutInst ->Get() but i am not quite sure as to what the first parameter should be since the EnableStatic needs to return a uint32. If i make it 0 i do not get a thing back.
Any ideas how to go about retreiving the retun value from the object returned?