APIs specified in POSIX for browsing through directories are implemneted in windows. This implementation isa wrapper around windows native calls. Using these POSIX function calls, we can port programs related todirectory browsing and use these calls without learning windows specific calls.
Here are the POSIX APIs which I’ve implemented
opendirclosedirreaddirrewinddirseekdirtelldirscandirftwdirfdstat
here is the dirent structure, in this structure, [...]
Archive for the ‘Windows Application Programming’ Category
Posix Directory Browsing API for Windows
Posted in C Tidbits, Windows Application Programming
Calling conventions on the x86 platform
cdecl
This calling convention is the default for C programs and also global functions in C++ programs. Generally the function arguments are passed on the stack in reverse order so that the callee can access them in the correct order. The caller is responsible for popping the arguments after the function returns, which makes it possible [...]
Posted in C Tidbits, Windows Application Programming