Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could 16bit .com executables call win32 APIs?

Tags:

com

winapi

dos

Any minimal example of 16bit .com display a window GUI using Win32 API on Windows?

like image 363
est Avatar asked Sep 16 '25 21:09

est


1 Answers

Win16 -> Win32

This can be done using CallProc32W

  • Call LoadLibraryEx32W() to load the Win32 DLL.
  • Call GetProcAddress32W() to get the address of the DLL routine.
  • Call the DLL routine using CallProc32W() or CallProcEx32W.

Code Example

Concept

Dos -> Win32

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

like image 154
stacker Avatar answered Sep 19 '25 15:09

stacker