If you declear the function at the beginning, you may be use the object everywhere. This may be inconvenient but I am unable to find the declearation files of IWbemServices
ProgID: ProgID of the Object
FuncName: Name of the function to call
ParamVar: Point to the array of the parameters of the function in the object
VarNumber: Number of the parameters
ReturnVar: Return value