ARTICLE DETAIL

资讯详情

深耕郑州网站建设与运营推广的一线实战洞察。

16、Windows NT 中的命名管道与邮件槽通信技术详解

16、Windows NT 中的命名管道与邮件槽通信技术详解

Windows NT 中的命名管道与邮件槽通信技术详解

1. Windows 中的命名管道

在 Windows 3.x 应用程序中使用命名管道时,其概念和一般用途与 Windows NT 中的命名管道基本相同,但存在一个显著差异:Windows 3.x 工作站不支持命名管道服务器,因此 Windows 应用程序只能作为命名管道客户端。

下面是 Windows 命名管道 API 与 Win32 命名管道 API 的对应关系:
| WIN32 API | Windows API |
| — | — |
| CreateFile() | OpenFile() |
| ReadFile() | _lread() |
| WriteFile() | _lwrite() |
| CloseHandle() | _lclose() |
| PeekNamedPipe() | DosPeekNmPipe() |
| WaitNamedPipe() | DosWaitNmPipe() |
| CallNamedPipe() | DosCallNmPipe() |
| TransactNamedPipe() | DosTransactNmPipe() |
| GetNamedPipeHandleState() | DosQNmPHandState() |
| SetNamedPipeHandleState() | DosSetNmPipeHandState() |
| GetNamedPipeInfo() | DosQNmPipeInfo() |
| ReadFile() with

返回列表