File:  [WindowsNT SDKs] / mstools / win32s / ut / samples / utsample / readme.txt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:25:17 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-nov-1993, ntsdk-jul-1993, HEAD
Microsoft Windows NT Build 511 (SDK Final Release) 07-24-1993

This sample shows how to use Universal Thunks to call APIs that are not
supported directly by Win32s.

This sample detects at run-time if it's running under Win32s or Windows NT,
and checks to see if the APIs it calls are supported or not.  If they are
not supported, it will call (via Universal Thunks) the appropriate 16 bit APIs.

Since this sample uses 16 bit code, you will need a 16 bit compiler (not
included in the Win32 SDK).  The included makefile.16 uses Microsoft C/C++
version 7.0, but it should be easily adaptable to other compilers.

Also, you will need to get some components from the \mstools\win32s\ut
directory from your Win32 SDK CD-Rom.  In particular the W32sUT.h needs
to go in %mstools%\h (and also in a directory in the INCLUDE path for
your Win16 development environment.)  W32sUT32.Lib needs to go in
%mstools%\h and W32sUT16.Lib needs to go in a directory in the LIB
path for your Win16 development environment.

Questions or comments about this Win32s sample are welcomed in the
API-Win32s section (Section 14) of the MSWIN32 forum on Compuserve.

Lee Hart
Microsoft Developer Support

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.