/**
* this code from
*
* copy here for learn findfirstfile function
* filename file.c
*/ int main(int argc,char*argv[]) {
win32_find_data findfiledata;
handle hfind;
printf("target file is %s.\n", argv[1]);
hfind = findfirstfile(argv[1],&findfiledata); if(hfind == invalid_handle_value) { printf("invalid file handle. getlasterror reports %d\n", getlasterror ()); return(0); } else { printf("the first file found is %s\n", findfiledata.cfilename);