如题。 代码为:
pipe_ = CreateNamedPipe(L"\\.\pipe\thistest\test"),
FILE_FLAG_FIRST_PIPE_INSTANCE |
PIPE_ACCESS_DUPLEX|
FILE_FLAG_OVERLAPPED,
PIPE_TYPE_MESSAGE |
PIPE_READMODE_MESSAGE |
PIPE_WAIT,
1,
kOutBufferSize,
kInBufferSize,
0,
NULL);
DWORD re = GetLastError();
一个简单windows api调用却好老是返回错误。会是什么问题呢?