用CreateNamePipe创建管道以后,ConnectNamedPipe出错,这是为什么
2个回答
展开全部
If the operation is asynchronous, ConnectNamedPipe returns immediately. If the operation is still pending, the return value is zero and GetLastError returns ERROR_IO_PENDING.
如果你使用的是异步,ConnectNamedPipe会立即返回,如果没有客户链接,返回0值,用GetLastError返回ERROR_IO_PENDING.
(You can use the HasOverlappedIoCompleted macro to determine when the operation has finished.) If the function fails, the return value is zero and
GetLastError returns a value other than ERROR_IO_PENDING or ERROR_PIPE_CONNECTED.
你可以用HasOverlappedIoCompleted这个宏,区确定操作是否结束
如果你使用的是异步,ConnectNamedPipe会立即返回,如果没有客户链接,返回0值,用GetLastError返回ERROR_IO_PENDING.
(You can use the HasOverlappedIoCompleted macro to determine when the operation has finished.) If the function fails, the return value is zero and
GetLastError returns a value other than ERROR_IO_PENDING or ERROR_PIPE_CONNECTED.
你可以用HasOverlappedIoCompleted这个宏,区确定操作是否结束
展开全部
If the operation is asynchronous, ConnectNamedPipe returns immediately. If the operation is still pending, the return value is zero and GetLastError returns ERROR_IO_PENDING.
如果使用的是异步,ConnectNamedPipe会立即返回,如果没有客户链接,返回0值,用GetLastError返回ERROR_IO_PENDING.
(You can use the HasOverlappedIoCompleted macro to determine when the operation has finished.) If the function fails, the return value is zero and
GetLastError returns a value other than ERROR_IO_PENDING or ERROR_PIPE_CONNECTED.
可以用HasOverlappedIoCompleted这个宏,去确定操作是否结束
如果使用的是异步,ConnectNamedPipe会立即返回,如果没有客户链接,返回0值,用GetLastError返回ERROR_IO_PENDING.
(You can use the HasOverlappedIoCompleted macro to determine when the operation has finished.) If the function fails, the return value is zero and
GetLastError returns a value other than ERROR_IO_PENDING or ERROR_PIPE_CONNECTED.
可以用HasOverlappedIoCompleted这个宏,去确定操作是否结束
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询