您的位置首页百科知识

调用CreateFile失败了为什么

调用CreateFile失败了为什么

的有关信息介绍如下:

调用CreateFile失败了为什么

建议使用GetLastError()查看对应错误代码来识别错误原因。1、可能是dwShareMode、dwCreationDisposition不配套。2、也可能是文件正处于被其它进程以独占模式打开。3、也可能对该文件没有访问权限。