Class _wmi_method
source code
A currying sort of wrapper around a WMI method name. It abstract's the
method's parameters and can be called like a normal Python object passing
in the parameter values.
Output parameters are returned from the call as a tuple. In addition,
the docstring is set up as the method's signature, including an
indication as to whether any given parameter is expecting an array, and
what special privileges are required to call the method.
|
__init__(self,
ole_object,
method_name)
@param ole_object The WMI class/instance whose method is to be called
@param method_name The name of the method to be called |
source code
|
|
|
__call__(self,
*args,
**kwargs)
Execute the call to a WMI method, returning a tuple (even if is of
only one value) containing the out and return parameters. |
source code
|
|
|
|