python - parameter transferring in the wmi -
hello have problem understanding piece of code:
import wmi c = wmi.wmi () process_id, return_value = c.win32_process.create (commandline="notepad.exe") process in c.win32_process (processid=process_id): print process.processid, process.name result = process.terminate () i can't understand
(commandline="notepad.exe") how mechanism working? , can find definition of commandline in advance help
it sent part of **kwargs of def new (self, **kwargs): can see in wmi.py. convention microsoft has defined process creation , can find in msdn documentation.
Comments
Post a Comment