只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2013-04-02 07:38 x@p 阅读(2) 评论(0) 推荐(0)
摘要: //=============================================================//read txt //=============================================================int read_txt(const char *filename, char *content){ const int BUFFERSIZE = 255; HANDLE hFile; DWORD dwBytesRead = 0; char buffer[BUFFERSIZE] = {0}; hFile ... 阅读全文
posted @ 2013-04-02 07:36 x@p 阅读(173) 评论(0) 推荐(0)
摘要: bool kill_process(LPCTSTR lpProcessName){ HANDLE hSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0); if (hSnap != INVALID_HANDLE_VALUE) { PROCESSENTRY32 pe = {sizeof(pe)}; Process32First(hSnap,&pe); char* exeName = pe.szExeFile; if (!strcmp(exeName, lpProcessName)) { //find the target proce. 阅读全文
posted @ 2013-04-02 07:34 x@p 阅读(151) 评论(0) 推荐(0)