#include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ const char bios_head[32]= { 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x5A,0xA5,0xF0,0x0F,0x03,0x00,0x04,0x03,0x06,0x02,0x10,0x15,0x20,0x01,0x21,0x00 }; char buff[0xffffff]; char id[32]; char outputdir[256]; char inputdir[256]; char chack_str(const char *a,char *b,int len) { int c; for(c=0;c1) { argc--; printf("Input flie %s\n",argv[argc]); tryunlock(argv[argc]); } printf("\n"); printf("\n"); while(1) { printf("请输入Bios文件路径,可通过拖拽文件到窗口快速输入,输入exit退出。\ndir:"); for(a=0;a<256;a++) { inputdir[a]=0; } scanf("%s",inputdir); if(chack_str("exit",inputdir,4)==0) { return 0; } tryunlock(inputdir); } //printf("have %d file\n",argc-1); //printf(argv[1]); //system("pause"); return 0; }