摘要: #include <windows.h>#include <iostream>using namespace std;int main(){ //HWND hWnd = ::FindWindow("Notepad",NULL); HWND hWnd = ::FindWindow(NULL,"a.txt - 记事本"); if(hWnd != NULL) { ::SendM... 阅读全文
posted @ 2010-02-06 12:21 liulun 阅读(404) 评论(0) 推荐(0) 编辑
摘要: #include <windows.h>#include <iostream>using namespace std;DWORD WINAPI ThreadProc(LPVOID lpParam){ int i = 0; while(i<20) { cout<<i<<endl; i++; } return 0;}int main(){ HA... 阅读全文
posted @ 2010-02-06 12:09 liulun 阅读(302) 评论(0) 推荐(0) 编辑