Can 16bit.com executables call win32 API?

Any minimal 16-bit .com example displays a window GUI using the Win32 API on Windows?

+3
source share
3 answers

Win16 → Win32

This can be done using CallProc32W

  • Call LoadLibraryEx32W()to download the Win32 library.
  • Call GetProcAddress32W()to get the address of a regular DLL program.
  • Call the DLL program with CallProc32W()or CallProcEx32W.

Code example

Concept

Dos → Win32

http://www.ragestorm.net/tutorial?id=27

+6
source

( 0x2f) Windows DOS Windows, ; API , .

+4

. , , , DOS, Windows, :

- DOS HX, Win32 API DOS. , win32, , PEstub , DOS. PEstub , DOS , HX win32. :

  • 386 , win32 .

  • ; :

    • DPMILD32.EXE - PE- ( DOS EXE)

    • DKRNL32.DLL - KERNEL32.DLL

    • DUSER32.DLL - USER32.DLL

    DPMI ( , ), :

    • HDPMI.EXE - DPMI Server ( DPMILD32, )

DOS- win32 - , "Haha, sucker, DOS! Windows 95!" Windows DOS. . MS-DOS MZ-, : zip-, , DOS, Win32-.

: win32, DOS- , . , MSVC win32, link.exe /STUB option. , , MS-DOS.exe, . :

  • , , , .

  • MS-DOS, , , , , , - .

+1
source

Source: https://habr.com/ru/post/1730321/


All Articles