ffi.cdef[[
const char* GetCommandLineA();
const char* CommandLineToArgvW(const char* lpCmdLine, int* pNumArgs);
]]
local shell32 = ffi.load("shell32.dll")
local args = ffi.new("int[1]")
local out = shell32.CommandLineToArgvW(ffi.C.GetCommandLineA(), args)
print(ffi.string(out), args[0])