All pastes #421534 Raw Edit

Cody Brocious

public python v1 · immutable
·published 2007-04-02 21:47 UTC
rendered paste body
import ctypes, sysGetCommandLineW = ctypes.windll.kernel32.GetCommandLineWGetCommandLineW.restype = ctypes.c_wchar_pargs = GetCommandLineW()numArgs = pointer(c_int(0))CommandLineToArgvW = ctypes.windll.shell32.CommandLineToArgvWCommandLineToArgvW.argtypes = [c_wchar_p, c_void_p]CommandLineToArgvW.restype = ctypes.c_wchar_psys.argv = CommandLineToArgvW(args, numArgs)