=FILE_SHARE_DELETE;
}
}
file://根据版本设置共享模式和安全属性
HANDLE hConsoleRedirect=CreateFile(
"c:\\NetStatus.txt",
GENERIC_WRITE,
dwShareMode,
psa,
OPEN_ALWAYS,
FILE_ATTRIBUTE_NORMAL,
NULL);
ASSERT(hConsoleRedirect!=INVALID_HANDLE_VALUE);
STARTUPINFO s={sizeof(s)};
s.dwFlags =STARTF_USESHOWWINDOW(北联网教程,专业提供视频软件下载)
……