开发命名管道应用时,所有Win32 API函数(CreateFile和CreateNamedPipe除外)都会在调用失败的前提下返回 0值。CreateFile和CreateNamedPipe返回的则是 INVALID_HANDLE_VALUE。
基于3个网页-相关网页
CreateFile lcreat GetTempFileName 创建文件
HANDLE hFile CreateFile 以只读方式打开文件
You use the function CreateFile to open a device.
函数CreateFile用于打开设备。
youdao
The code bellow defined CreateFile and CopyFile two classes, use Command patten and Composite patten log requests, and support undoable operations.
下面的例子定义了 创建文件 和 拷贝文件 两个类,使用命令模式和组合模式记录日志,并实现逆操作。
应用推荐
模块上移
模块下移
不移动