【发布时间】:2010-08-19 04:52:29
【问题描述】:
引用here:
hPipe = CreateFile(
lpszPipename, // pipe name
GENERIC_READ | // read and write access
GENERIC_WRITE,
0, // no sharing
NULL, // default security attributes
OPEN_EXISTING, // opens existing pipe
0, // default attributes
NULL);
上面的代码如何确保它实际上打开了一个管道而不是一个现有的硬盘文件?
顺便说一句,我怎样才能打开一个可以多次使用的持久管道?
【问题讨论】: