home *** CD-ROM | disk | FTP | other *** search
/ Troubleshooting Netware Systems / CSTRIAL0196.BIN / attach / msj / v10n04 / memman.exe / PHYS32.C < prev    next >
C/C++ Source or Header  |  1995-04-01  |  669b  |  26 lines

  1. //==================================
  2. // PHYS - Matt Pietrek 1994
  3. // FILE: PHYS32.C
  4. //==================================
  5. #include <windows.h>
  6.  
  7. BOOL _stdcall phystk_ThunkConnect32(PSTR, PSTR, HINSTANCE, DWORD);
  8.  
  9. INT WINAPI DllMain
  10. (
  11.     HANDLE  hInst,
  12.     ULONG   dwReason,
  13.     LPVOID  lpReserved
  14. )
  15. {
  16.     if (!(phystk_ThunkConnect32("PHYS16.DLL",   // Name of 16-bit DLL       
  17.                                 "PHYS32.DLL",   // Name of 32-bit DLL
  18.                                 hInst,
  19.                                 dwReason)))
  20.     {
  21.         MessageBox(0, "phystk_ThunkConnect32 failed", 0, MB_OK);
  22.         return FALSE;
  23.     }
  24.     return 1;
  25. }
  26.