using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows.Forms; namespace War3Screen { /// <summary> /// 以嵌入到窗体的方式打开外部exe--kongfl888 2013 /// </summary
直接上代码: 1. my_debugger_defines.py 定义相关结构体(在后面创建进程及返回信息时,传参可用到) from ctypes import * # Let's map the Microsoft types to ctypes for clarity WORD=c_ushort DWORD=c_ulong LPBYTE=POINTER(c_ubyte) LPTSTR=POINTER(c_char) HANDLE=c_void_p #constants DEBUG_PROCE