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.

138 lines
3.5 KiB

  1. ;
  2. ; USER2.ASM
  3. ; More Win16 USER thunks
  4. ;
  5. ; History:
  6. ;
  7. ; Created 25-Jan-1991 by Jeff Parsons (jeffpar)
  8. ; Added Win 31 thunks 22nd-March-1992 by Chandan S. Chauhan (ChandanC)
  9. ; Split off from USER.ASM 9-Jun-92 by BobDay
  10. ;
  11. ;--
  12. TITLE USER2.ASM
  13. PAGE ,132
  14. .286p
  15. .xlist
  16. include wow.inc
  17. include wowusr.inc
  18. include cmacros.inc
  19. NOEXTERNS=1 ; to suppress including most of the stuff in user.inc
  20. include user.inc
  21. .list
  22. externFP GetModuleHandle
  23. externFP WOW16Call
  24. createSeg _TEXT,CODE,WORD,PUBLIC,CODE
  25. createSeg _DATA,DATA,WORD,PUBLIC,DATA,DGROUP
  26. defgrp DGROUP,DATA
  27. sBegin CODE
  28. assumes CS,CODE
  29. assumes DS,DATA
  30. assumes ES,NOTHING
  31. ;*--------------------------------------------------------------------------*
  32. ;*
  33. ;* CheckDisplayHandle()
  34. ;*
  35. ;* Checks to see if the handle passed in is the handle for the DISPLAY
  36. ;* driver. If that is the case then we change the parameter to NULL.
  37. ;* This is to make applications like Winword 1.1a able to load cursors,icons
  38. ;* and bitmaps from the 32 bit display driver.
  39. ;*
  40. ;*--------------------------------------------------------------------------*
  41. display DB 'DISPLAY',0
  42. cProc CheckDisplayHandle, <PUBLIC, NEAR>
  43. parmW hInstance ; Callers Parameters
  44. parmD lpName ; Callers
  45. parmD lpReturn ; Callers Return Address
  46. cBegin
  47. pusha
  48. push cs
  49. push offset display
  50. Call GetModuleHandle
  51. cmp ax,hInstance
  52. jnz @f
  53. mov hInstance,0h ; Change Callers parameter to NULL
  54. @@:
  55. popa
  56. mov sp,bp ; Do cEnd without Ret count (leave parameters there)
  57. pop bp
  58. ret
  59. cEnd <nogen>
  60. UserThunk FARCALLNETDRIVER
  61. UserThunk FILEPORTDLGPROC
  62. UserThunk FILLRECT
  63. DUserThunk FILLWINDOW,8 ;Needs to be exposed in WIN32
  64. DUserThunk FINALUSERINIT
  65. UserThunk FINDWINDOW
  66. UserThunk FLASHWINDOW
  67. UserThunk FLUSHCOMM
  68. UserThunk FRAMERECT
  69. DUserThunk GETACTIVEWINDOW,0
  70. DUserThunk GETASYNCKEYSTATE
  71. DUserThunk GETCAPTURE,0
  72. DUserThunk GETCARETBLINKTIME,0
  73. DUserThunk GETCARETPOS
  74. UserThunk GETCLASSINFO
  75. UserThunk GETCLASSLONG
  76. UserThunk GETCLASSWORD
  77. DUserThunk GETCLIPBOARDDATA
  78. UserThunk GETCLIPBOARDFORMATNAME
  79. DUserThunk GETCLIPBOARDOWNER,0
  80. DUserThunk GETCLIPBOARDVIEWER,0
  81. UserThunk GETCOMMERROR
  82. UserThunk GETCOMMEVENTMASK
  83. UserThunk GETCOMMSTATE
  84. DUserThunk GETCONTROLBRUSH
  85. UserThunk GETDC
  86. DUserThunk GETDIALOGBASEUNITS,0
  87. UserThunk GETDLGCTRLID
  88. UserThunk GETDLGITEMINT
  89. UserThunk GETDLGITEMTEXT
  90. DUserThunk GETDOUBLECLICKTIME,0
  91. DUserThunk GETFILEPORTNAME
  92. DUserThunk GETFOCUS,0
  93. DUserThunk GETICONID
  94. DUserThunk GETINPUTSTATE,0
  95. DUserThunk GETINTERNALWINDOWPOS
  96. UserThunk GETLASTACTIVEPOPUP
  97. DUserThunk GETMENUCHECKMARKDIMENSIONS,0
  98. UserThunk GETMENUSTRING
  99. UserThunk GETMESSAGE
  100. DUserThunk GETMESSAGE2
  101. DUserThunk GETMESSAGEPOS,0
  102. DUserThunk GETMESSAGETIME,0
  103. ;;; DUserThunk GETMOUSEEVENTPROC ; local api in winmisc2.asm
  104. UserThunk GETNEXTDLGGROUPITEM
  105. UserThunk GETNEXTDLGTABITEM
  106. UserThunk GETNEXTQUEUEWINDOW
  107. UserThunk GETPRIORITYCLIPBOARDFORMAT
  108. UserThunk GETPROP
  109. UserThunk GETQUEUESTATUS
  110. UserThunk GETSCROLLPOS
  111. UserThunk GETSCROLLRANGE
  112. ;;; DUserThunk GETSYSMODALWINDOW,0 ; local api in winmisc1.asm
  113. UserThunk GETSYSTEMMENU
  114. UserThunk GETTABBEDTEXTEXTENT
  115. ;;; UserThunk GETTASKFROMHWND ; No longer exported in Win95
  116. DUserThunk GETTIMERRESOLUTION
  117. sEnd CODE
  118. end