Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the board
Thread view  Mix view  Order
RayeR

Homepage

CZ,
01.12.2020, 00:11
 

VXD/LE file modification - unknown bytes in header (Developers)

I'm trying to port some patch from one VXD to another VXD (a different driver version). I started with comparing patched and original file. At the beginning there are 3 different bytes at offset 144-146h - what is its meaning?
The file starts with MZ signature and common DOS stub.
LE header start with LE signature at offset 80h. I guessed that bytes are LE checksum but not, it's 0. I found some LE description but it didn't went too further to describe offset bytes at 144h - 80h. Any idea?

---
DOS gives me freedom to unlimited HW access.

tkchia

Homepage

01.12.2020, 15:12

@ RayeR

VXD/LE file modification - unknown bytes in header

Hello RayeR,

> The file starts with MZ signature and common DOS stub.
> LE header start with LE signature at offset 80h. I guessed that bytes are
> LE checksum but not, it's 0. I found some LE description but it didn't went
> too further to describe offset bytes at 144h - 80h. Any idea?

No idea, but perhaps the bytes starting at offset 0x144 are part of some other data structure which the LE header (before them) refers to?

---
https://gitlab.com/tkchia · https://codeberg.org/tkchia · 😴 "MOV AX,0D500H+CMOS_REG_D+NMI"

RayeR

Homepage

CZ,
01.12.2020, 18:24

@ tkchia

VXD/LE file modification - unknown bytes in header

> No idea, but perhaps the bytes starting at offset 0x144 are part of some
> other data structure which the LE header (before them) refers to?

Yes, it maybe. Is there any description of (headers of) Win9x VXD files?

---
DOS gives me freedom to unlimited HW access.

Laaca

Homepage

Czech republic,
02.12.2020, 13:08

@ RayeR

VXD/LE file modification - unknown bytes in header

Some info is here:
https://www.geoffchappell.com/notes/windows/archive/vxdldr.htm

---
DOS-u-akbar!

RayeR

Homepage

CZ,
27.12.2020, 21:54
(edited by RayeR, 28.12.2020, 01:11)

@ Laaca

VXD/LE file modification - unknown DWord in header-codesize?

I didn't much oriented in that document but I got an idea, that the DWord at offset 144-147h must be some image size or code segment size because the patched file contains 56 new bytes of code in a cavity at the end of file and the difference of this magic DWord between original and patched version is aslo 56 so without this change Win98 crashed probably because accessing code beyond the limit. So I fixed the magic DWord by adding 56 and let's see :)

---
DOS gives me freedom to unlimited HW access.

RayeR

Homepage

CZ,
30.12.2020, 05:14

@ RayeR

VXD/LE file modification - unknown DWord in header-codesize?

I got a message that patched driver now works at least with 256MB card so it's on a good way, the DWord in header really matters...

---
DOS gives me freedom to unlimited HW access.

Back to the board
Thread view  Mix view  Order
22049 Postings in 2034 Threads, 396 registered users, 257 users online (1 registered, 256 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum