benilla-re systems structs docs

EnumerateFolderFiles

function · os · host

Address
0x42ad10 · 304 bytes, up to 0x42ae3f
Signature
bool __fastcall (const char *folder, const char *pattern, void *callback, void *param, uint32_t withHidden)
Meaning
Calls a callback for each entry a folder pattern lists, hidden ones on request, until one returns nonzero
Confidence
verified, proof two
Finding
storm/mount#listing-a-folder

Finding: Listing a folder in storm: mounting the archives

EnumerateFolderFiles(folder, pattern, callback, param, withHidden) (0x42ad10) cuts folder after its last \ (never inside its root; a folder with no \ stays whole), appends pattern, and lists the result with FindFirstFileW and FindNextFileW: the working directory, the system's wildcard match and the file system's order apply. For each entry it calls callback(&entry, param), the entry {size, flags, name}: the low 32 bits of the size, flags 0x10 directory, 0x1 read-only and 0x2 hidden, and the name in UTF-8 within 0x104 bytes. A hidden entry is skipped while withHidden is 0; nothing else is, . and .. included. A callback that returns nonzero stops the listing with the result 1; otherwise the result is 0, also when nothing matches.

The derivation is in the doc.

Callers 6

Callees 5

Calls and jumps by a bare address, from tables/calls.tsv.