// ---- Формирование IMPORT секции void DoLink() dword i,j,DirTable,AddrTable,dllName,apiName,byName,hold; dword dll,api; { OptImportTableAdr=outptr-output; DirTable=outptr; if(APIcount==0){ OUTDWORD(outptr -output + OptBaseOfCode + 4); OUTDWORD(0x80000001); OUTDWORD(0); OUTDWORD(DirTable-output+40+OptBaseOfCode); OUTDWORD(outptr-output + OptBaseOfCode - 12); DirTable=outptr; outptr = outptr + 20; OUTDWORD('resu'); OUTDWORD('d.23'); OUTDWORD('ll'); // OUTDWORD(0x72657375); OUTDWORD(0x642E3233); OUTDWORD(0x6C6C); apiName=outptr; } else { EAX=DLLcount+1*20; outptr+=EAX; // на начало LookupTables i=0; while(i