Could 16bit .com executables call win32 APIs?

api, com, dos, winapi

Solution

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

Problem

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

Original source