Link to home
Start Free TrialLog in
Avatar of aleks_grid
aleks_grid

asked on

retreiving the return value from the EnableStatic() method of Win32_NetworkAdapterConfig class

quick question

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?
ASKER CERTIFIED SOLUTION
Avatar of novitiate
novitiate

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial