OS/2, eCS & ArcaOS - Technical > Programming

Table of similar API calls for OS/2 and Windows ?

<< < (2/3) > >>

Martin Vieregg:
The purpose is porting the OS-specific parts of MeShell (pipes, semaphores, VIO buffer access, exceptions) from OS/2 to Windows. It is only a small percentage of the code (ME is already platform-independent), but they are very specific calls.
The Open32 docu only shows the Windows calls, but it is only a subset of the most common calls.

Dave Yeo:
I think you might run across the problem that Windows has evolved security wise so those calls, pipes, semaphores etc, have been updated with ownership properties. eg, _beginthread() vs _beginthreadex() so porting to modern NT is not as simple as porting to Win9x or older NT when so much just ran as administrator.

Martin Vieregg:
I have copied an old win32.hlp / win32.cnt from a Borland C 5.0 CD from 1996. There the pure Win32 API is described. It should fit my purpose better than current descriptions. Winhlp32.exe works fine with Odin.

Open32.inf has no description of the Win32 API calls included. Is the source code of Open32 available? There the translations (both OS/2 and Win32 API calls) should be shown.

Dave Yeo:
No source that I'm aware of, just os2win.h in the toolkit. Looking at the samples, recompiling is often as simple as changing windows.h to os2win.h, converting rc files, ptrs and such, creating a def file and recompiling. I'd guess the API is close to your '96 SDK.

Martin Vieregg:
Are there download links for the toolkit?
I could take a look at the h files, I hope I will see the direct API call correspondences.

I have got an OS/2 program and want to get a Windows program. (It is the reverse direction.)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version