问题
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