Skip to content

Instantly share code, notes, and snippets.

@malkia
malkia / fileinfo.c
Created December 16, 2011 18:54
Win32: Reading directory in one kernel call
// Not sure whether it's faster than FindFirstFile, etc. - but it does it in one kernel call
#include <windows.h>
#include <stdio.h>
// to compile:
// cl fileinfo.c setargv.obj
void fileinfo(const char*name);
int main( int argc, const char* argv[] )