1、在WindowsMobile和Wince(WindowsEmbeddedCE)下如何使用.NETCompactFramework开发进程管理程序在.NETCompactFramework的进程管理需要调用win32的API,也就是P/Invoke,在msnd上提供了这一P/Invoke的源代码, CreatingaMicrosoft.NETCompactFramework-basedProcessManagerApplication,由于在技术交流群里有不同的人问同样的问题,因此打算写一下。Win32API关键的API如下: private const int T
2、H32CS_SNAPPROCESS = 0x00000002; [DllImport("toolhelp.dll")] public static extern IntPtr CreateToolhelp32Snapshot(uint flags, uint processid); [DllImport("toolhelp.dll")] public static extern int CloseToolhelp32Snapshot(IntPtr handle); [DllImport("toolh
3、elp.dll")] public static extern int Process32First(IntPtr handle, byte[] pe); [DllImport("toolhelp.dll")] public static extern int Process32Next(IntPtr handle, byte[] pe); [DllImport("coredll.dll")] private static extern IntPtr OpenProcess(int flags, b