How can I make UMDF driver write to file?

夙愿已清 提交于 2019-12-11 17:43:48

问题


I want to log a string to an external file in my UMDF driver. For example

// create/open file CString filePath = _T("C:\\Metric.csv"); CHandle hFile(CreateFile(filePath, GENERIC_WRITE, 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL));

This returns 5 (Access Denied).

Is this because UMDF driver cannot access files or resources that require user credentials? If so, which dir can i possibly create/modify a csv file.

来源:https://stackoverflow.com/questions/54919618/how-can-i-make-umdf-driver-write-to-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!