如何在驱动程序编程中检查文件是否存在? [英] How to Check File Exist Or Not In Driver Programming ?

查看:135
本文介绍了如何在驱动程序编程中检查文件是否存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想检查驱动程序代码中是否存在文件,例如用户模式下的"PathFileExist()"函数,但是我找不到用于此目的的任何函数,请告诉我可以这样做,谢谢,

hi ,i want check that a file is exist or not in my driver code , like "PathFileExist()" function in user mode , but i can not find any function for this Purpose , please tell me name of function that can do this work , thanks ,

推荐答案

如果您是在驱动程序级别上工作,为什么不使用C风格的fopen()并查看文件是否存在以这种方式?如果不是,则fopen()将失败并返回NULL.
If you''re working at a driver level, why not do a C-style fopen() and see if the file exists in that manner? If it doesn''t, the fopen() will fail and return NULL.


这篇关于如何在驱动程序编程中检查文件是否存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆