Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
1.2 KiB

  1. TITLE WINSPOOL.ASM
  2. PAGE ,132
  3. ;
  4. ; WOW v1.0
  5. ;
  6. ; Copyright (c) 1991, Microsoft Corporation
  7. ;
  8. ; WINSPOOL.ASM
  9. ; Thunks in 16-bit space to route Windows API calls to WOW32
  10. ;
  11. ; History:
  12. ; 17-OCT-1991 Matt Felton (mattfe)
  13. ; Created.
  14. ;
  15. .286p
  16. .xlist
  17. include wow.inc
  18. include wowgdi.inc
  19. include cmacros.inc
  20. .list
  21. __acrtused = 0
  22. public __acrtused ;satisfy external C ref.
  23. externFP WOW16Call
  24. createSeg _TEXT,CODE,WORD,PUBLIC,CODE
  25. createSeg _DATA,DATA,WORD,PUBLIC,DATA,DGROUP
  26. defgrp DGROUP,DATA
  27. sBegin DATA
  28. Reserved db 16 dup (0) ;reserved for Windows //!!!!! what is this
  29. WINSPOOL_Identifier db 'WINSPOOL16 Data Segment'
  30. public _iLogLevel
  31. _iLogLevel dw 0
  32. public _iBreakLevel
  33. _iBreakLevel dw 0
  34. sEnd DATA
  35. sBegin CODE
  36. assumes CS,CODE
  37. assumes DS,DATA
  38. assumes ES,NOTHING
  39. cProc WINSPOOL16,<PUBLIC,FAR,PASCAL,NODATA,ATOMIC>
  40. cBegin <nogen>
  41. mov ax,1 ;always indicate success
  42. ret
  43. cEnd <nogen>
  44. assumes DS,NOTHING
  45. cProc WEP,<PUBLIC,FAR,PASCAL,NODATA,NOWIN,ATOMIC>
  46. parmW iExit ;DLL exit code
  47. cBegin
  48. mov ax,1 ;always indicate success
  49. cEnd
  50. assumes DS,DATA
  51. assumes DS,NOTHING
  52. DGDIThunk DEVICEMODE
  53. DGDIThunk EXTDEVICEMODE
  54. DGDIThunk DEVICECAPABILITIES
  55. cProc ExtTextOut,<PUBLIC,FAR>
  56. cBegin
  57. int 3
  58. cEnd
  59. sEnd CODE
  60. end WINSPOOL16