16 struct _finddata_t data;
46 name = ctx->
data.name;
50 *attrib = ctx->
data.attrib & ~0xFFFFFF00;
54 if( !FindNextFile( ctx->
handle, &ctx->
data ) ) {
59 name = ctx->
data.cFileName;
60 }
while( ctx->
data.dwFileAttributes & ~ctx->
attrib );
62 *attrib = ctx->
data.dwFileAttributes & ~0xFFFFFF00;
77 if( out_attrib ==
NULL )
78 out_attrib = &tmp_attrib;
93 handle_ok = ctx->
handle != -1;
96 handle_ok = ctx->
handle != INVALID_HANDLE_VALUE;
101 ctx->
attrib = attrib | 0xFFFFFF00;
104 if( (attrib & 0x10) == 0 )
112 name = ctx->
data.name;
113 *out_attrib = ctx->
data.attrib & ~0xFFFFFF00;
116 if( ctx->
data.dwFileAttributes & ~ctx->
attrib )
120 name = ctx->
data.cFileName;
121 *out_attrib = ctx->
data.dwFileAttributes & ~0xFFFFFF00;
137 len = strlen( name );