[python-win32] BCD WMI modification via pywin32 without effect
Tim Golden
mail at timgolden.me.uk
Fri Jun 15 23:02:54 CEST 2012
On 15/06/2012 21:14, Roger Upole wrote:
> Looks like the parameters to SetIntegerElement are reversed:
>
>>>> objWBM.Methods_('SetIntegerElement').InParameters.Properties_[0].Name
> 'Integer'
>>>> objWBM.Methods_('SetIntegerElement').InParameters.Properties_[1].Name
> 'Type'
>
> If I switch the call to
> success, = call(objWBM, "SetIntegerElement", 5, 0x25000004)
> the expected value is printed.
Good catch. To the OP: if you use named params on the wmi methods rather
than positional this will avoid the issue.
TJG
More information about the python-win32
mailing list