JIArray resourceSetting = new JIArray(new JIString[]{new JIString(harddisk)}, false);
Object[] paramsToExecute = new Object[]{virtualSystemInputObj,resourceSetting,
JIVariant.EMPTY_BYREF(),JIVariant.EMPTY_BYREF()};
virtualSystemInputObj is a JIVariant object obtained via Select Query.
But I get the below error "The stub received bad data. Please check whether the API has been called in the right way, with correct parameter formation. [0x800706F7]"
Is there a way I can debug which parameter is wrong from Windows logs? Am I passing the parameters properly?
Thanks
Guru
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I have to call this function.
uint32 AddResourceSettings(
[in] CIM_VirtualSystemSettingData REF AffectedConfiguration,
[in] string ResourceSettings[],
[out] CIM_ResourceAllocationSettingData REF ResultingResourceSettings[],
[out] CIM_ConcreteJob REF Job
);
Here is the code for construct the input argument
JIArray resourceSetting = new JIArray(new JIString[]{new JIString(harddisk)}, false);
Object[] paramsToExecute = new Object[]{virtualSystemInputObj,resourceSetting,
JIVariant.EMPTY_BYREF(),JIVariant.EMPTY_BYREF()};
virtualSystemInputObj is a JIVariant object obtained via Select Query.
But I get the below error "The stub received bad data. Please check whether the API has been called in the right way, with correct parameter formation. [0x800706F7]"
Is there a way I can debug which parameter is wrong from Windows logs? Am I passing the parameters properly?
Thanks
Guru