Cody Brocious
public python v1 · immutableimport 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)