I have a bunch of device files which are accessible by using \\.\name_of_file
as an argument to CreateFile
.
I can use WinObj to see the list of these files, but what I'd like to do is iterate over them programmatically. Much Googling seems to be implying that I can use the Object Manager or the NT namespace, but I can't find an API for either of these, nor the source for WinObj to trawl through...
Can anyone enlighten me please?
The APIs to do this are documented but are not guaranteed to work in future versions of Windows. With that in mind, look at the following: NtOpenDirectoryObject , NtQueryDirectoryObject