Leaked source code of windows server 2003
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.

343 lines
7.9 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 1995 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: 32to16.thk
  6. * Content: DirectDraw engine thunk script for having DDRAW.DLL call
  7. * DDRAW16.DLL
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 21-jan-95 craige initial implementation
  12. * 03-feb-95 craige performance tuning, ongoing work
  13. * 03-mar-95 craige WaitForVerticalBlank
  14. * 11-mar-95 craige Palette stuff
  15. * 24-mar-95 craige added DD16_GetTimeSel
  16. * 04-apr-95 craige added DD16_GetPaletteEntries, DD16_SetPaletteEntries
  17. * 14-may-95 craige added DD16_EnableReboot; cleaned out obsolete junk
  18. * 23-may-95 craige removed DD16_GetTimeSel
  19. * 28-may-95 craige cleaned up HAL: added DDThunk16_GetBltStatus;
  20. * DDThunk16_GetFlipStatus; DDThunk16_GetScanLine
  21. * 19-jun-95 craige added DCI calls
  22. * 20-jun-95 craige added DD16_InquireVisRgn
  23. * 22-jun-95 craige added DD16_WWxxx calls
  24. * 02-jul-95 craige comment out clipper notification stuff; added
  25. * DD16_ChangeDisplaySettings
  26. * 10-jul-95 craige added DDThunk16_SetOverlayPosition
  27. * 19-jul-95 craige added GetDriverFns
  28. * 20-jul-95 craige internal reorg to prevent thunking during modeset
  29. * 31-jul-95 craige added DCIIsBanked
  30. * 01-aug-95 toddla added DD16_Exclude and DD16_Unexclude
  31. * 05-sep-95 craige bug 814: added DD16_IsWin95MiniDriver
  32. * 21-sep-95 craige bug 1215: added DD16_SetCertified
  33. * 13-apr-96 colinmc bug 17736: No driver notification of flip to GDI
  34. * 26-sep-96 ketand add GetAvailDriverMemory callback
  35. * 05-oct-96 colinmc Work Item: Removing the restriction on taking Win16
  36. * lock on VRAM surfaces (not including the primary)
  37. * 21-jan-97 ketand Add parameters for DD16_SetPaletteEntries to handle
  38. * multi-mon correctly
  39. * 23-jan-97 ketand Add parameters for DD16_GetDC for multimon
  40. * 26-jan-97 ketand Remove unused DD16_GetPaletteEntries
  41. * 27-jan-97 colinmc AGP work
  42. * 29-jan-97 jeffno Extra param for ModeX_SetMode to mean mode 13.
  43. * 02-feb-97 toddla pass driver name to DD16_GetMonitor functions
  44. * added DD16_GetDeviceConfig
  45. *
  46. ***************************************************************************/
  47. enablemapdirect3216 = true;
  48. #include "types.h"
  49. int DD16_GetMonitorMaxSize(LPSTR szDevice)
  50. {
  51. }
  52. BOOL DD16_GetMonitorRefreshRateRanges(LPSTR szDevice, int xres, int yres, int *pmin, int *pmax)
  53. {
  54. pmin = inout;
  55. pmax = inout;
  56. }
  57. BOOL DD16_GetMonitorEDIDData(LPSTR szDevice, LPVOID lpEdidData)
  58. {
  59. }
  60. DWORD DD16_GetDeviceConfig(LPSTR szDevice, LPVOID lpConfig, DWORD size)
  61. {
  62. }
  63. DWORD DD16_GetRateFromRegistry(LPSTR szDevice)
  64. {
  65. }
  66. int DD16_SetRateInRegistry(LPSTR szDevice, DWORD dwRate)
  67. {
  68. }
  69. void DD16_SetCertified( BOOL )
  70. {
  71. }
  72. BOOL DD16_IsWin95MiniDriver( void )
  73. {
  74. }
  75. BOOL DD16_FixupDIBEngine( void )
  76. {
  77. }
  78. LONG ModeX_SetPaletteEntries(UINT wBase, UINT wNum, LPVOID lpPaletteEntries)
  79. {
  80. }
  81. LONG ModeX_SetMode( UINT wWidth, UINT wHeight, UINT wStandardVGAMode )
  82. {
  83. }
  84. LONG ModeX_RestoreMode( void )
  85. {
  86. }
  87. LONG ModeX_Flip( DWORD lpBackBuffer )
  88. {
  89. }
  90. void DD16_SetEventHandle( DWORD hInstance, DWORD dwEvent )
  91. {
  92. }
  93. void DD16_DoneDriver( DWORD hInstance )
  94. {
  95. }
  96. void DD16_GetDriverFns( LPVOID list )
  97. {
  98. }
  99. void DD16_GetHALInfo( LPVOID ddhalinfo )
  100. {
  101. ddhalinfo = inout;
  102. }
  103. LONG DD16_ChangeDisplaySettings( LPDEVMODE pdm, DWORD flags)
  104. {
  105. }
  106. BOOL DD16_SafeMode(HDC hdc, BOOL fSafeMode)
  107. {
  108. }
  109. HDC DD16_GetDC(HDC hdc, LPVOID pddsd, LPVOID lpPalette)
  110. {
  111. }
  112. void DD16_ReleaseDC(HDC hdc)
  113. {
  114. }
  115. void DD16_Exclude(DWORD dwPDevice, LPVOID prcl)
  116. {
  117. }
  118. void DD16_Unexclude(DWORD dwPDevice)
  119. {
  120. }
  121. int DD16_Stretch(DWORD DstPtr, int DstPitch, UINT DstBPP, int DstX, int DstY, int DstDX, int DstDY,
  122. DWORD SrcPtr, int SrcPitch, UINT SrcBPP, int SrcX, int SrcY, int SrcDX, int SrcDY)
  123. {
  124. }
  125. void DD16_SelectPalette( HDC hDC, HPALETTE hPalette, BOOL f )
  126. {
  127. }
  128. HRGN DD16_InquireVisRgn( HDC hDC )
  129. {
  130. }
  131. void DD16_EnableReboot( BOOL )
  132. {
  133. }
  134. BOOL DD16_SetPaletteEntries( HDC hdc, DWORD dwBase, DWORD dwNum, LPVOID lpPaletteEntries, BOOL fPrimary )
  135. {
  136. lpPaletteEntries = output;
  137. }
  138. WORD DD16_MakeObjectPrivate( HDC hdc, BOOL fPrivate )
  139. {
  140. }
  141. DWORD DDThunk16_CreatePalette( LPDDHAL_CREATEPALETTEDATA lpCreatePaletteData )
  142. {
  143. lpCreatePaletteData = inout;
  144. }
  145. DWORD DDThunk16_CreateSurface( LPDDHAL_CREATESURFACEDATA lpCreateSurfaceData )
  146. {
  147. lpCreateSurfaceData = inout;
  148. }
  149. DWORD DDThunk16_CanCreateSurface( LPDDHAL_CANCREATESURFACEDATA lpCanCreateSurfaceData )
  150. {
  151. lpCanCreateSurfaceData = inout;
  152. }
  153. DWORD DDThunk16_WaitForVerticalBlank( LPDDHAL_WAITFORVERTICALBLANKDATA lpWaitForVerticalBlankData )
  154. {
  155. lpWaitForVerticalBlankData = inout;
  156. }
  157. DWORD DDThunk16_DestroyDriver( LPDDHAL_DESTROYDRIVERDATA lpDestroyDriverData )
  158. {
  159. lpDestroyDriverData = inout;
  160. }
  161. DWORD DDThunk16_SetMode( LPDDHAL_SETMODEDATA lpSetModeData )
  162. {
  163. lpSetModeData = inout;
  164. }
  165. DWORD DDThunk16_GetScanLine( LPDDHAL_GETSCANLINEDATA lpGetScanLineData )
  166. {
  167. lpGetScanLineData = inout;
  168. }
  169. DWORD DDThunk16_SetExclusiveMode( LPDDHAL_SETEXCLUSIVEMODEDATA lpSetExclusiveMode )
  170. {
  171. lpSetExclusiveMode = inout;
  172. }
  173. DWORD DDThunk16_FlipToGDISurface( LPDDHAL_FLIPTOGDISURFACEDATA lpFlipToGDISurface )
  174. {
  175. lpFlipToGDISurface = inout;
  176. }
  177. DWORD DDThunk16_GetAvailDriverMemory( LPDDHAL_GETAVAILDRIVERMEMORYDATA lpGetAvailDriverMemoryData)
  178. {
  179. lpGetAvailDriverMemoryData = inout;
  180. }
  181. DWORD DDThunk16_UpdateNonLocalHeap( LPDDHAL_UPDATENONLOCALHEAPDATA lpUpdateNonLocalHeapData)
  182. {
  183. lpUpdateNonLocalHeapData = inout;
  184. }
  185. DWORD DDThunk16_DestroyPalette( LPDDHAL_DESTROYPALETTEDATA lpDestroyPaletteData)
  186. {
  187. lpDestroyPaletteData = inout;
  188. }
  189. DWORD DDThunk16_SetEntries( LPDDHAL_SETENTRIESDATA lpSetEntriesData )
  190. {
  191. lpSetEntriesData = inout;
  192. }
  193. DWORD DDThunk16_DestroySurface( LPDDHAL_DESTROYSURFACEDATA lpDestroySurfaceData )
  194. {
  195. lpDestroySurfaceData = inout;
  196. }
  197. DWORD DDThunk16_Flip( LPDDHAL_FLIPDATA lpFlipData )
  198. {
  199. lpFlipData = inout;
  200. }
  201. DWORD DDThunk16_Blt( LPDDHAL_BLTDATA lpBltData )
  202. {
  203. lpBltData = inout;
  204. }
  205. DWORD DDThunk16_Lock( LPDDHAL_LOCKDATA lpLockData )
  206. {
  207. lpLockData = inout;
  208. }
  209. DWORD DDThunk16_Unlock( LPDDHAL_UNLOCKDATA lpUnlockData )
  210. {
  211. lpUnlockData = inout;
  212. }
  213. DWORD DDThunk16_AddAttachedSurface( LPDDHAL_ADDATTACHEDSURFACEDATA lpAddAttachedSurfaceData )
  214. {
  215. lpAddAttachedSurfaceData = inout;
  216. }
  217. DWORD DDThunk16_SetColorKey( LPDDHAL_SETCOLORKEYDATA lpSetColorKeyData )
  218. {
  219. lpSetColorKeyData = inout;
  220. }
  221. DWORD DDThunk16_SetClipList( LPDDHAL_SETCLIPLISTDATA lpSetClipListData )
  222. {
  223. lpSetClipListData = inout;
  224. }
  225. DWORD DDThunk16_UpdateOverlay( LPDDHAL_UPDATEOVERLAYDATA lpUpdateOverlayData )
  226. {
  227. lpUpdateOverlayData = inout;
  228. }
  229. DWORD DDThunk16_SetOverlayPosition( LPDDHAL_SETOVERLAYPOSITIONDATA lpSetOverlayPositionData )
  230. {
  231. lpSetOverlayPositionData = inout;
  232. }
  233. DWORD DDThunk16_SetPalette( LPDDHAL_SETPALETTEDATA lpSetPaletteData )
  234. {
  235. lpSetPaletteData = inout;
  236. }
  237. DWORD DDThunk16_GetBltStatus( LPDDHAL_GETBLTSTATUSDATA lpGetBltStatusData )
  238. {
  239. lpGetBltStatusData = inout;
  240. }
  241. DWORD DDThunk16_GetFlipStatus( LPDDHAL_GETFLIPSTATUSDATA lpGetFlipStatusData )
  242. {
  243. lpGetFlipStatusData = inout;
  244. }
  245. BOOL DCIIsBanked( HDC hdc )
  246. {
  247. }
  248. HDC DCIOpenProvider( void )
  249. {
  250. }
  251. void DCICloseProvider( HDC hdc )
  252. {
  253. }
  254. int DCICreatePrimary32(HDC hdc, LPVOID lpSurface)
  255. {
  256. }
  257. void DCIDestroy( LPVOID pdci ) =
  258. void DCIDestroy32( LPVOID pdci )
  259. {
  260. }
  261. void DCIEndAccess( LPVOID pdci )
  262. {
  263. }
  264. int DCIBeginAccess( LPVOID pdci, int x, int y, int dx, int dy )
  265. {
  266. }
  267. DWORD DDThunk16_ColorControl( LPDDHAL_COLORCONTROLDATA lpColorControl )
  268. {
  269. lpColorControl = inout;
  270. }
  271. BOOL DD16_AttemptGamma(HDC hdc)
  272. {
  273. }
  274. BOOL DD16_IsDeviceBusy(HDC hdc)
  275. {
  276. }