home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / REFERENC / LEARNVBX / LIBINIT.ASM < prev    next >
Encoding:
Assembly Source File  |  1992-06-10  |  889 b   |  32 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 when the first client loads the DLL.
  17. ;----------------------------------------------------------------------------
  18. PUBLIC        astartLib
  19. astartLib   PROC FAR
  20.     push    di        ;hmodLib
  21.     push    ds        ;segDS
  22.     push    cx        ;usHeapSize
  23.     call    LibMain
  24.     ret
  25. astartLib   ENDP
  26.  
  27. LIBINIT_TEXT ENDS
  28.  
  29. ;----------------------------------------------------------------------------
  30.  
  31.         end     astartLib
  32.