home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK7 / SOURCE / STARTUP / WIN / STUBWEP.AS$ / STUBWEP
Encoding:
Text File  |  1991-11-06  |  1.3 KB  |  72 lines

  1.     page    ,132
  2.     title    stubwep - Default _WEP() Procedure for Windows DLL
  3. ;***
  4. ;stubwep.asm - Default _WEP() Procedure for Windows DLL
  5. ;
  6. ;    Copyright (c) 1990-1992, Microsoft Corporation.  All rights reserved.
  7. ;
  8. ;Purpose:
  9. ;    WEP() get's control in the C runtime and dispatches to
  10. ;    an optional _WEP() routine provided by the user.  If that
  11. ;    routine does not exist, then this one is called.
  12. ;
  13. ;*******************************************************************************
  14.  
  15. ?DF=    1            ; this is special for c startup
  16.  
  17. .xlist
  18. include version.inc
  19. ?PLM = 1
  20. ?WIN = 1
  21. include cmacros.inc
  22. include defsegs.inc
  23. .list
  24.  
  25. ;
  26. ; Define segment
  27. ;
  28.  
  29. CrtDefSegs <wepcode>
  30. CODE_SEG  equ    <wepcode>
  31. CS_ASSUME equ    <WEP_TEXT>    ; assumes macro won't handle wepcode
  32.  
  33.  
  34. %sBegin  CODE_SEG
  35. %assumes cs,CS_ASSUME
  36. assumes ds,nothing
  37.  
  38. page
  39. ;***
  40. ; stubwep - Default _WEP() Procedure for Windows DLL
  41. ;
  42. ;Purpose:
  43. ;    (see above)
  44. ;
  45. ;Entry:
  46. ;    int fSystemExit = WEP_SYSTEM_EXIT = System Shutdown
  47. ;            = WEP_FREE_DLL = DLL Termination
  48. ;
  49. ;Exit:
  50. ;    return value = 1
  51. ;Uses:
  52. ;
  53. ;Exceptions:
  54. ;
  55. ;*******************************************************************************
  56.  
  57. ;int _far pascal _STUBWEP (int bSystemExit)
  58.  
  59. cProc    __STUBWEP,<PUBLIC,PASCAL,FAR>,<>
  60.  
  61.     parmW    exitflags
  62.  
  63. cBegin    <nolocals>
  64.  
  65.     mov    ax,1        ; 1 = success
  66.  
  67. cEnd    <nolocals>
  68.  
  69. sEnd    code
  70.  
  71.     end
  72.