Does anyone have any working/compilable code for flat thunking in asm? i.e. 32bit dll and 16bit or perhapes could tell me why a debug kernel reports Incompatable thunk protocols when i use my dlls :)

regards, yates.
Posted on 2001-11-18 11:56:13 by [yates]
yates,

i've try to perform a flat thunking in asm. I jump from a 32bit code to a 16 bit dll directly, without passing for 32bit dll before. This seems working but then i couldn't follow with debugging what happen on 16bit dll. Now i've stopped here.

Take a look to this code if can help. I was trying to read mbr but to do this it need to jump to 16bit code.

Flat thunk seems not an easy thing. If you will do it, it would be great if you will teach me the way.

good luck B7
Posted on 2001-11-20 00:53:02 by Bit7
I have written a flat thunk for direct hd access in win32 (int 13h). But its in C, not ASM. The prefix for the thunk compiler is "xxx".

japheth
Posted on 2001-11-20 02:33:06 by japheth
excellent, they both look like good examples i can play around with, i'll have a look into it when i have some time, thank you both for your replies

regards, yates.
Posted on 2001-11-20 03:10:05 by [yates]