CreateProcess = Win32API.new("kernel32", "CreateProcess", %w%P P P P L L P P P P%, 'L')
WaitForSingleObject = Win32API.new("kernel32", "WaitForSingleObject", %w%L L%, 'L')
startupInfo = [68, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0].pack("l*")
processInfo = "\0" * 32 * 4
CreateProcess.call(0, "mspaint", 0, 0, 0, 0, 0, 0, startupInfo, processInfo)
WaitForSingleObject.call(processInfo.unpack("l*")[0], 0xFFFFFFFF)
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |