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.

95 lines
1.8 KiB

  1. TITLE DISPLAY.ASM
  2. PAGE ,132
  3. ;
  4. ; WOW v1.0
  5. ;
  6. ; Copyright (c) 1991, Microsoft Corporation
  7. ;
  8. ; DISPLAY.ASM
  9. ; Thunks in 16-bit space to route Windows API calls to WOW32
  10. ;
  11. ; History:
  12. ; 13-MAY-1992 Matt Felton (mattfe)
  13. ; Created.
  14. ;
  15. ; WinProj 3.0 does the following API:-
  16. ; GetModuleFileName(GetModuleHandle("DISPLAY"), buffer, sizeof(buffer));
  17. ; In WOW we do not require a display driver becuase we always call GDI32 to
  18. ; perform screen IO.
  19. .286p
  20. .xlist
  21. include cmacros.inc
  22. .list
  23. __acrtused = 0
  24. public __acrtused ;satisfy external C ref.
  25. createSeg _TEXT,CODE,WORD,PUBLIC,CODE
  26. createSeg _DATA,DATA,WORD,PUBLIC,DATA,DGROUP
  27. defgrp DGROUP,DATA
  28. sBegin DATA
  29. Reserved db 16 dup (0) ;reserved for Windows //!!!!! what is this
  30. DISPLAY_Identifier db 'DISPLAY'
  31. sEnd DATA
  32. sBegin CODE
  33. assumes CS,CODE
  34. assumes DS,DATA
  35. assumes ES,NOTHING
  36. cProc DISPLAY,<PUBLIC,FAR,PASCAL,NODATA,ATOMIC>
  37. cBegin <nogen>
  38. mov ax,1 ;always indicate success
  39. ret
  40. cEnd <nogen>
  41. assumes DS,NOTHING
  42. cProc WEP,<PUBLIC,FAR,PASCAL,NODATA,NOWIN,ATOMIC>
  43. parmW iExit ;DLL exit code
  44. cBegin
  45. mov ax,1 ;always indicate success
  46. cEnd
  47. cProc Disable,<FAR,PUBLIC,WIN,PASCAL>,<si,di>
  48. parmD lp_device
  49. cBegin
  50. mov ax,-1
  51. cEnd
  52. cProc Enable,<FAR,PUBLIC,WIN,PASCAL>,<si,di>
  53. parmD lp_device ;Physical device or GDIinfo destination
  54. parmW style ;Style, Enable Device, or Inquire Info
  55. parmD lp_device_type ;Device type (i.e FX80, HP7470, ...)
  56. parmD lp_output_file ;DOS output file name (if applicable)
  57. parmD lp_stuff ;Device specific information
  58. cBegin
  59. mov ax,0
  60. cEnd
  61. ; required for AutoSketch
  62. cProc CheckCursor,<FAR,PUBLIC,WIN,PASCAL>
  63. cBegin
  64. or ax,ax ;do nothing
  65. cEnd
  66. assumes DS,DATA
  67. assumes DS,NOTHING
  68. sEnd CODE
  69. end DISPLAY