Reputation: 16792
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?
Upvotes: 3
Views: 1360
Reputation: 5635
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
Upvotes: 2
Reputation: 6314
Meandering Through the Object Manager might be what you are looking for. Osronline is just cool.
Upvotes: 3