随笔分类 - windows编程
摘要:#include <windows.h>#include <tlhelp32.h>#include <stdio.h>//列出进程界面//声明快照的头文件int main(){ PROCESSENTRY32 pe32; //使用这个结构前,先设置其大小 pe32.dwSize = sizeof(pe
阅读全文
摘要:#include <windows.h>#include <stdio.h>//创建一个新窗口进程并返回进程ID号和进程的主线程ID号int main(){ STARTUPINFO si = {sizeof(si)}; char* szCommandLine = "cmd.exe"; si.dwFl
阅读全文