home *** CD-ROM | disk | FTP | other *** search
/ Troubleshooting Netware Systems / CSTRIAL0196.BIN / attach / msj / v10n05 / wqa0595.exe / FX1MBDLL.C < prev    next >
C/C++ Source or Header  |  1995-05-01  |  471b  |  23 lines

  1. #include <windows.h>
  2. #include <string.h>
  3. #pragma hdrstop
  4.  
  5. int FAR PASCAL LibMain( HANDLE h, WORD wDS, WORD cbHeap, LPSTR lpszCmdLine )
  6. {
  7.     char szExePath[260];
  8.     LPSTR p;
  9.     
  10.     if ( cbHeap != 0 )
  11.         UnlockData(0);
  12.  
  13.     GetModuleFileName( h, szExePath, sizeof(szExePath) );
  14.     p = strrchr( szExePath, '\\' );
  15.     if ( !p )
  16.         return 0;
  17.     lstrcpy( p+1, "FIX1MB.EXE" );
  18.  
  19.     WinExec( szExePath, SW_SHOWMINIMIZED );
  20.  
  21.     return 1;
  22. }
  23.