Has anyone a pe Header type declaration ?
rgds
Ralph
------------------
rgds
Ralph
------------------
cnt& = 1024 ' number of bytes to read a$ = space$(cnt&) ' allocate buffer lp& = StrPtr(a$) ' get its address ! mov ecx, cnt& ; count in ECX ! mov esi, hInstance ; instance handle in ESI ! mov edi, lp& ; buffer address in EDI ! rep movsb ; copy bytes mz$ = left$(a$,2) ' read 1st 2 bytes MessageBox hWin,ByCopy mz$,"Start of DOS stub", _ %MB_OK or %MB_ICONINFORMATION PE& = instr(a$,"PE"+chr$(0,0)) - 1 ' correct to zero offset MessageBox hWin,ByCopy hex$(PE&,8)+" hex","Address of PE header", _ %MB_OK or %MB_ICONINFORMATION
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment