摘要:
#include <windows.h>#include <stdio.h>#include <stdlib.h>int runcmd( char* lpCmd ){ char buf[2048] = {0}; //缓冲区 DWORD len; HANDLE hRead, hWrite; // 管道读写句柄 STARTUPINFO si; PROCESS_INFORMATION pi; SECURITY_ATTRIBUTES sa; //ZeroMemory( buf, 2047 ); sa.nLength = sizeof(... 阅读全文