home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code1 / filelist / libinit.asm < prev    next >
Assembly Source File  |  1990-08-22  |  908b  |  33 lines

  1. title    LibInit.asm - Windows DynLink Library Initialization
  2.  
  3. ;----------------------------------------------------------------------------
  4.  
  5. extrn    LibMain:far
  6.  
  7. extrn    __acrtused:ABS    ;make sure C-runtime gets pulled in
  8.  
  9. ;----------------------------------------------------------------------------
  10.  
  11. LIBINIT_TEXT  SEGMENT BYTE PUBLIC 'CODE'
  12. ASSUME    CS:LIBINIT_TEXT
  13.  
  14. ;----------------------------------------------------------------------------
  15. ; DLL entry point.
  16. ;    This routine is called which is called when the first client loads
  17. ;    the DLL.
  18. ;----------------------------------------------------------------------------
  19. PUBLIC        astartLib
  20. astartLib   PROC FAR
  21.     push    di        ;hmodLib
  22.     push    ds        ;segDS
  23.     push    cx        ;usHeapSize
  24.     call    LibMain
  25.     ret
  26. astartLib   ENDP
  27.  
  28. LIBINIT_TEXT ENDS
  29.  
  30. ;----------------------------------------------------------------------------
  31.  
  32.         end     astartLib
  33.