ffi.cdef [[
typedef unsigned long DWORD;
typedef char TCHAR;
typedef struct {
DWORD dwLowDateTime;
DWORD dwHighDateTime;
} FILETIME;
typedef struct { // wfd
DWORD dwFileAttributes;
FILETIME ftCreationTime;
FILETIME ftLastAccessTime;
FILETIME ftLastWriteTime;
DWORD nFileSizeHigh;
DWORD nFileSizeLow;
DWORD dwReserved0;
DWORD dwReserved1;
TCHAR cFileName[ 260 ];
TCHAR cAlternateFileName[ 14 ];
} WIN32_FIND_DATAA;
]]
local WIN32_FIND_DATAA = ffi.typeof("struct WIN32_FIND_DATAA")