Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the board
Thread view  Mix view  Order
CandyMan

05.03.2021, 17:37
 

HXDOS extender and needed import procedures (Miscellaneous)

Hello Japheth!

Maybe you add these:

K32_Enum_Process_Modules_Ex
K32_Get_Module_Base_Name_A
K32_Get_Module_Information

procedures to HXDOS to be able to run new delphi compiler in DOS.
Please omit "_" in procedure names.

Thanks.

Japheth

Homepage

Germany (South),
05.03.2021, 19:01

@ CandyMan

HXDOS extender and needed import procedures

> K32_Enum_Process_Modules_Ex
> K32_Get_Module_Base_Name_A
> K32_Get_Module_Information

These names don't look like kernel32 function names.

---
MS-DOS forever!

CandyMan

05.03.2021, 21:35

@ Japheth

HXDOS extender and needed import procedures

> > K32_Enum_Process_Modules_Ex
> > K32_Get_Module_Base_Name_A
> > K32_Get_Module_Information
>
> These names don't look like kernel32 function names.

See: https://stackoverflow.com/questions/49647559/how-t...c-name-for-getprocaddress-function-using-windbg

CandyMan

05.03.2021, 22:07

@ CandyMan

HXDOS extender and needed import procedures

I also found bug in ConvertAStr that crashes with delphi compilers.

ConvertAStr proc public pBuffer:ptr
;       pushad
;       mov ecx, eax
;       mov ah,0
;       inc ecx                 ;copy the term 0 as well
;       mov edi, pBuffer
;       mov esi, edi
;       .while (ecx)
;               dec ecx
;               mov al,[esi+ecx]
;               mov [edi+ecx*2],ax
;       .endw
;       popad
;       ret
        pop     ebp
        pop     ecx
        pop     eax
        pushad
        mov     esi,eax
        mov     edi,eax
        xchg    ecx,eax
        jecxz   @Quit
@Loop:  lodsb
        or      al,al
        jnz     @Loop
        sub     esi,ecx
        mov     ecx,esi
        mov     ah,al
@Pool:  dec     ecx
        mov     al,[ecx+edi]
        mov     [edi+ecx*2],ax
        jnz     @Pool
@Quit:  popad
        jmp     ecx
        align 4
ConvertAStr endp

tkchia

Homepage

06.03.2021, 14:06

@ CandyMan

HXDOS extender and needed import procedures

Hello Candyman, hello Japheth,

> > > K32_Enum_Process_Modules_Ex
> > > K32_Get_Module_Base_Name_A
> > > K32_Get_Module_Information
> > These names don't look like kernel32 function names.
> See:
> https://stackoverflow.com/questions/49647559/how-t...c-name-for-getprocaddress-function-using-windbg

The names should probably just be "GetModuleBaseNameA", etc. (without "K32")?

These are declared in psapi.h ( https://docs.microsoft.com/en-us/windows/win32/api/psapi/ ) within the Windows API.

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

CandyMan

06.03.2021, 16:24
(edited by CandyMan, 06.03.2021, 16:39)

@ tkchia

HXDOS extender and needed import procedures

> The names should probably just be "GetModuleBaseNameA", etc. (without
> "K32")?

Unfortunately, I need them with the K32 prefix. Look in your kernel32.dll (ver. 6.1) for such names.

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