摘要: #include "windows.h"#include "tlhelp32.h"#include "stdio.h"int main(int argc, char* argv[]){ PROCESSENTRY32 pe32; //在使用这个结构前,先设置它的大小    pe32.dwSize = sizeof(pe32); //给系统内所有的进程拍个快照    HANDLE hProcessSn... 阅读全文
posted @ 2010-06-19 09:51 千禧牛 阅读(209) 评论(0) 推荐(0)
摘要: 在C#里调用Win32函数有这么几个要点。 第一:名字要与Win32 API的完全一样。 第二:函数除了要有相应的DllImport类修饰外,还要声明成public static extern类型的。 第三:也是最变态的一点,函数的返回值和参数类型要与Win32 API完全一致! 阅读全文
posted @ 2010-06-19 09:51 千禧牛 阅读(180) 评论(0) 推荐(0)
摘要: using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using ... 阅读全文
posted @ 2010-06-19 09:51 千禧牛 阅读(320) 评论(0) 推荐(0)