Show More
@@ -97,7 +97,7 b' class _PROCESS_INFORMATION(ctypes.Struct' | |||||
97 | ('dwProcessId', _DWORD), |
|
97 | ('dwProcessId', _DWORD), | |
98 | ('dwThreadId', _DWORD)] |
|
98 | ('dwThreadId', _DWORD)] | |
99 |
|
99 | |||
100 | _DETACHED_PROCESS = 0x00000008 |
|
100 | _CREATE_NO_WINDOW = 0x08000000 | |
101 | _STARTF_USESHOWWINDOW = 0x00000001 |
|
101 | _STARTF_USESHOWWINDOW = 0x00000001 | |
102 | _SW_HIDE = 0 |
|
102 | _SW_HIDE = 0 | |
103 |
|
103 | |||
@@ -337,7 +337,7 b' def spawndetached(args):' | |||||
337 | args = comspec + " /c " + args |
|
337 | args = comspec + " /c " + args | |
338 |
|
338 | |||
339 | res = _kernel32.CreateProcessA( |
|
339 | res = _kernel32.CreateProcessA( | |
340 |
None, args, None, None, False, _ |
|
340 | None, args, None, None, False, _CREATE_NO_WINDOW, | |
341 | env, os.getcwd(), ctypes.byref(si), ctypes.byref(pi)) |
|
341 | env, os.getcwd(), ctypes.byref(si), ctypes.byref(pi)) | |
342 | if not res: |
|
342 | if not res: | |
343 | raise ctypes.WinError |
|
343 | raise ctypes.WinError |
General Comments 0
You need to be logged in to leave comments.
Login now