非常感谢我的好朋友张新林帮助我解决了这个问题!!!! ^_^SECURITY_ATTRIBUTES sa;
psd = (PSECURITY_DESCRIPTOR)malloc (SECURITY_DESCRIPTOR_MIN_LENGTH);
InitializeSecurityDescriptor (psd, SECURITY_DESCRIPTOR_REVISION);
SetSecurityDescriptorDacl (psd, TRUE, (PACL)NULL, FALSE);
sa.nLength = sizeof(sa);
sa.lpSecurityDescriptor = psd;
sa.bInheritHandle = TRUE;
CreatePipe (&hPipeRead, &hPipeWrite, &sa, 0);
psd = (PSECURITY_DESCRIPTOR)malloc (SECURITY_DESCRIPTOR_MIN_LENGTH);
InitializeSecurityDescriptor (psd, SECURITY_DESCRIPTOR_REVISION);
SetSecurityDescriptorDacl (psd, TRUE, (PACL)NULL, FALSE);
sa.nLength = sizeof(sa);
sa.lpSecurityDescriptor = psd;
sa.bInheritHandle = TRUE;
CreatePipe (&hPipeRead, &hPipeWrite, &sa, 0);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货