04 2013 档案
摘要://=============================================================//read txt //=============================================================int read_txt(const char *filename, char *content){ const int BUFFERSIZE = 255; HANDLE hFile; DWORD dwBytesRead = 0; char buffer[BUFFERSIZE] = {0}; hFile ...
阅读全文
摘要: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.
阅读全文
浙公网安备 33010602011771号