Microsoft KB Archive/109204

{|
 * width="100%"|

Win32s and LAN Manager APIs

 * }

Q109204

-

The information in this article applies to:


 * Microsoft Win32s versions 1.0, 1.1, 1.15, 1.2, 1.25, 1.25a

-

SUMMARY
NOTE: Win32s provides support for NetBIOS and Windows Sockets.

There is a NETAPI32.DLL shipping with Win32s. However, this doesn't have support for Microsoft LAN Manager application programming interfaces (APIs). This is not a bug because LAN Manager APIs are not supported on Win32s. However, if NETAPI32.DLL is not in the system and an application uses LAN Manager APIs, the application will not load because the loader cannot resolve the entry-points from the nonexistent dynamic-link library (DLL).

One of the solutions is to use Universal Thunks. Using Universal Thunks, calls can be made to 16-bit DLLs. Therefore, the 16-bit NETAPI.DLL that ships with LAN Manager can be accessed by this mechanism.

Sample programs using Universal Thunks are provided in the Win32 SDK and the Visual C++ SDK. The sample on the Win32 SDK is in the MSTOOLS\WIN32S\UT\SAMPLES directory. On the Visual C++ 32-bit Edition CD-ROM, the sample is located in the MSVC32S\WIN32S\UT\SAMPLES directory.

Additional query words: 1.00 1.10 1.20

Keywords :

Issue type :

Technology : kbWin32sSearch kbWin32s100 kbWin32s110 kbWin32s115 kbWin32s120 kbWin32s125 kbWin32s125a