HANDLE CreateNamedPipe(
LPCTSTR lpName, // pipe name
DWORD dwOpenMode, // pipe open mode
DWORD dwPipeMode, // pipe-specific modes
DWORD nMaxInstances, // maximum number of instances
DWORD nOutBufferSize, // output buffer size
DWORD nInBufferSize, // input buffer size
DWORD nDefaultTimeOut, // time-out interval
LPSECURITY_ATTRIBUTES lpSecurityAttributes // SD
);
第二个参数dwOpenMode:
[in] Specifies the pipe access mode, the overlapped mode, the write-through mode, and the security access mode of the pipe handle.
指定管道访问模式,重叠模式,写直通模式,和管道句柄的安全访问模式第三个参数dwPipeMode
[in] Specifies the type, read, and wait modes of the pipe handle.
指定管道句柄的类型,读写类型。其中第二个参数:有个FILE_FLAG_OVERLAPPED,用来设置为重叠模式
第三个参数:有个PIPE_WAIT :Blocking mode is enabled.问题是:
一个是管道的访问方式,一个是管道句柄的访问方式,有区别吗??????
LPCTSTR lpName, // pipe name
DWORD dwOpenMode, // pipe open mode
DWORD dwPipeMode, // pipe-specific modes
DWORD nMaxInstances, // maximum number of instances
DWORD nOutBufferSize, // output buffer size
DWORD nInBufferSize, // input buffer size
DWORD nDefaultTimeOut, // time-out interval
LPSECURITY_ATTRIBUTES lpSecurityAttributes // SD
);
第二个参数dwOpenMode:
[in] Specifies the pipe access mode, the overlapped mode, the write-through mode, and the security access mode of the pipe handle.
指定管道访问模式,重叠模式,写直通模式,和管道句柄的安全访问模式第三个参数dwPipeMode
[in] Specifies the type, read, and wait modes of the pipe handle.
指定管道句柄的类型,读写类型。其中第二个参数:有个FILE_FLAG_OVERLAPPED,用来设置为重叠模式
第三个参数:有个PIPE_WAIT :Blocking mode is enabled.问题是:
一个是管道的访问方式,一个是管道句柄的访问方式,有区别吗??????
解决方案 »
- 怎么在OCX的get函数中返回属性值?
- 关于在嵌入ActiveX控件的doc\view结构的状态栏显示问题
- 取汉字拼音首字母,程序已经OK,但是有些字符不在编码范围内,如何解决
- EZShellExtensionsMFC 2.0
- 开发者论坛:群号:3977294,欢迎加入,vc++。.net,com等
- 怎样让基于对话框的工具条浮动起来?
- 能不能提供视频采集在网络上传输的例子??
- 电信对google是不是采取动态封锁的?
- 用nmake生成代理/存根dllzongshi
- 求助 求一个基于MFC上导入3d模型进行交互的实例
- 送分100分:程序运行出现 磁盘或网络错误提示,换个XP登录帐号就正常了,是什么原因。
- 窗口经典消息
第二个参数是用来确定该pipe是单向还是双向,重点是规定道路的单双向行驶。
第三个参数与传递的内容和秩序相关,重点是指出路上跑的是什么车并规定放行规则。