How can I list all the files in the \ GLOBAL folder ?? \

I have a bunch of device files that are available using \\.\name_of_fileas an argument CreateFile.

I can use WinObj to view a list of these files, but what I would like to do is programmatically iterate over them. Much like Google Googling implies that I can use Object Manager or the NT namespace, but I can not find the API for either of them, nor for the source for WinObj for trawling ...

Can someone enlighten me please?

+3
source share
2 answers

The APIs for this are documented , but not guaranteed to work in future versions of Windows . With that in mind, look at the following: NtOpenDirectoryObject , NtQueryDirectoryObject

+2
source

An apology through the Object Manager may be what you are looking for. Osronline is just awesome .

+3
source

All Articles