Directory relative ZwCreateFile
问题 I have to implement cross view file integrity checker for my University project. For that how do I list the files of a Directory in Kernel Mode?? 回答1: Your starting point would be ZwCreateFile - which has options such as "FILE_LIST_DIRECTORY". You will then use ZwQueryDirectoryFile to get the information about the file(s) within that directory. Make SURE that you are not forgetting to ZwClose after you open something - it's not so critical in a user-mode application that closes again after it