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.

445 lines
11 KiB

  1. ; Copyright (c) 1998-1999 Microsoft Corporation
  2. [Types]
  3. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  4. ;;
  5. ;; Generic templates. These handle most of the APIs.
  6. ;;
  7. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  8. TemplateName=BOOL
  9. Also=HPALETTE
  10. Also=HANDLE
  11. Also=HDC
  12. Also=HRGN
  13. Also=HBITMAP
  14. Also=HBRUSH
  15. Also=HPEN
  16. Also=HFONT
  17. Also=HKL
  18. Also=void
  19. Also=HWND
  20. Also=HACCEL
  21. Also=HDESK
  22. Also=HIMC
  23. Also=HCURSOR
  24. Also=HWINSTA
  25. Also=HMENU
  26. Also=HHOOK
  27. Also=HWINEVENTHOOK
  28. Also=HSURF
  29. IndLevel=0
  30. Return=
  31. {ApiErrorRetvalTebCode, 0}, // @ApiName @NL
  32. End=
  33. TemplateName=NTSTATUS
  34. IndLevel=0
  35. Return=
  36. {ApiErrorNTSTATUSTebCode, 0}, // @ApiName @NL
  37. End=
  38. TemplateName=default
  39. Return=
  40. {ApiErrorRetval, STATUS_UNSUCCESSFUL}, // BUGBUG: must add an EFunc for @ApiName to get its failure code right @NL
  41. End=
  42. [EFunc]
  43. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  44. ;;
  45. ;; Generic GDI functions
  46. ;;
  47. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  48. TemplateName=NtGdiAddFontResource
  49. Also=NtGdiColorCorrectPalette
  50. Also=NtGdiAddFontResourceW
  51. Also=NtGdiDescribePixelFormat
  52. Also=NtGdiDoPalette
  53. Also=NtGdiEnumFontOpen
  54. Also=NtGdiExtGetObjectW
  55. Also=NtGdiGetBitmapBits
  56. Also=NtGdiGetBoundsRect
  57. Also=NtGdiGetCharacterPlacementW
  58. Also=NtGdiGetColorSpaceforBitmap
  59. Also=NtGdiGetDeviceCaps
  60. Also=NtGdiGetDIBitsInternal
  61. Also=NtGdiGetEudcTimeStampEx
  62. Also=NtGdiGetKerningPairs
  63. Also=NtGdiGetRgnBox
  64. Also=NtGdiGetServerMetaFileBits
  65. Also=NtGdiGetSpoolMessage
  66. Also=NtGdiGetStringBitmapW
  67. Also=NtGdiGetTextFaceW
  68. Also=NtGdiGetFontUnicodeRanges
  69. Also=NtGdiMakeFontDir
  70. Also=NtGdiPolyPolyDraw
  71. Also=NtGdiGetDhpdev
  72. Also=NtGdiSetUMPDOBJ
  73. Also=NtGdiSaveDC
  74. Also=NtGdiSetBitmapBits
  75. Also=NtGdiSetBoundsRect
  76. Also=NtGdiSetDIBitsToDeviceInternal
  77. Also=NtGdiSetFontEnumeration
  78. Also=NtGdiSetMetaRgn
  79. Also=NtGdiStartDoc
  80. Also=NtGdiStretchDIBitsInternal
  81. Also=NtUserDbgWin32HeapStat
  82. Return=
  83. {ApiErrorRetvalTebCode, 0}, // @ApiName @NL
  84. End=
  85. TemplateName=NtGdiCombineRgn
  86. Also=NtGdiEnumObjects
  87. Also=NtGdiExcludeClipRect
  88. Also=NtGdiGetAppClipBox
  89. Also=NtGdiIntersectClipRect
  90. Also=NtGdiOffsetClipRgn
  91. Also=NtGdiOffsetRgn
  92. Also=NtGdiGetRegionData
  93. Return=
  94. {ApiErrorRetvalTebCode, ERROR}, // @ApiName @NL
  95. End=
  96. TemplateName=NtGdiConvertMetafileRect
  97. Return=
  98. {ApiErrorRetvalTebCode, /*MRI_ERROR*/0}, // @ApiName @NL
  99. End=
  100. TemplateName=NtGdiGetPerBandInfo
  101. Also=NtGdiGetFontData
  102. Also=NtGdiGetGlyphIndicesW
  103. Also=NtGdiGetGlyphIndicesWInternal
  104. Also=NtGdiGetTextCharsetInfo
  105. Also=NtGdiGetDeviceWidth
  106. Also=NtGdiSetLayout
  107. Return=
  108. {ApiErrorRetvalTebCode, GDI_ERROR}, // @ApiName @NL
  109. End=
  110. TemplateName=NtGdiDrawEscape
  111. Also=NtGdiExtEscape
  112. Also=NtGdiGetGlyphOutline
  113. Also=NtGdiGetLinkedUFIs
  114. Also=NtGdiGetOutlineTextMetricsInternalW
  115. Also=NtGdiGetPath
  116. Also=NtGdiGetPixel
  117. Also=NtGdiGetRandomRgn
  118. Also=NtGdiQueryFonts
  119. Also=NtGdiSetPixel
  120. Also=NtGdiGetEmbedFonts
  121. Return=
  122. {ApiErrorRetvalTebCode, -1}, // @ApiName @NL
  123. End=
  124. TemplateName=NtGdiExtSelectClipRgn
  125. Return=
  126. {ApiErrorRetvalTebCode, RGN_ERROR}, // @ApiName @NL
  127. End=
  128. TemplateName=NtGdiGetCharSet
  129. Return=
  130. {ApiErrorRetvalTebCode, (DEFAULT_CHARSET << 16)}, // @ApiName @NL
  131. End=
  132. TemplateName=NtGdiGetNearestColor
  133. Also=NtGdiGetNearestPaletteIndex
  134. Return=
  135. {ApiErrorRetvalTebCode, CLR_INVALID}, // @ApiName @NL
  136. End=
  137. TemplateName=NtGdiGetSystemPaletteUse
  138. Also=NtGdiSetSystemPaletteUse
  139. Return=
  140. {ApiErrorRetvalTebCode, SYSPAL_ERROR}, // @ApiName @NL
  141. End=
  142. TemplateName=NtGdiQueryFontAssocInfo
  143. Return=
  144. {ApiErrorRetvalTebCode, /*GFA_NOT_SUPPORTED*/0}, // @ApiName @NL
  145. End=
  146. TemplateName=NtGdiSetupPublicCFONT
  147. Return=
  148. {ApiErrorRetvalTebCode, /*MAX_PUBLIC_CFONT*/16}, // @ApiName @NL
  149. End=
  150. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  151. ;;
  152. ;; DirectX functions
  153. ;;
  154. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  155. TemplateName=NtGdiD3dContextCreate
  156. Also=NtGdiD3dContextDestroy
  157. Also=NtGdiD3dContextDestroyAll
  158. Also=NtGdiD3dSceneCapture
  159. Also=NtGdiD3dTextureCreate
  160. Also=NtGdiD3dTextureDestroy
  161. Also=NtGdiD3dTextureSwap
  162. Also=NtGdiD3dTextureGetSurf
  163. Also=NtGdiD3dSetRenderTarget
  164. Also=NtGdiD3dClear2
  165. Also=NtGdiD3dValidateTextureStageState
  166. Also=NtGdiD3dDrawPrimitives2
  167. Also=NtGdiDdGetDriverState
  168. Also=NtGdiDdAddAttachedSurface
  169. Also=NtGdiDdAlphaBlt
  170. Also=NtGdiDdBeginMoCompFrame
  171. Also=NtGdiDdBlt
  172. Also=NtGdiDdCanCreateSurface
  173. Also=NtGdiDdCanCreateD3DBuffer
  174. Also=NtGdiDdCaptureCompositionBuffer
  175. Also=NtGdiDdColorControl
  176. Also=NtGdiDdCreateSurface
  177. Also=NtGdiDdCreateSurfaceEx
  178. Also=NtGdiDdCreateD3DBuffer
  179. Also=NtGdiDdDestroyMoComp
  180. Also=NtGdiDdDestroySurface
  181. Also=NtGdiDdDestroyD3DBuffer
  182. Also=NtGdiDdEndMoCompFrame
  183. Also=NtGdiDdFlip
  184. Also=NtGdiDdFlipToGDISurface
  185. Also=NtGdiDdGetAvailDriverMemory
  186. Also=NtGdiDdGetBltStatus
  187. Also=NtGdiDdGetDriverInfo
  188. Also=NtGdiDdGetFlipStatus
  189. Also=NtGdiDdGetInternalMoCompInfo
  190. Also=NtGdiDdGetMoCompBuffInfo
  191. Also=NtGdiDdGetMoCompGuids
  192. Also=NtGdiDdGetMoCompFormats
  193. Also=NtGdiDdGetScanLine
  194. Also=NtGdiDdLock
  195. Also=NtGdiDdLockD3D
  196. Also=NtGdiDdQueryMoCompStatus
  197. Also=NtGdiDdRenderMoComp
  198. Also=NtGdiDdResize
  199. Also=NtGdiDdSetColorKey
  200. Also=NtGdiDdSetExclusiveMode
  201. Also=NtGdiDdSetOverlayPosition
  202. Also=NtGdiDdSetSpriteDisplayList
  203. Also=NtGdiDdSwapTextureHandles
  204. Also=NtGdiDdUnlock
  205. Also=NtGdiDdUnlockD3D
  206. Also=NtGdiDdUpdateOverlay
  207. Also=NtGdiDdWaitForVerticalBlank
  208. Also=NtGdiDvpCanCreateVideoPort
  209. Also=NtGdiDvpColorControl
  210. Also=NtGdiDvpDestroyVideoPort
  211. Also=NtGdiDvpFlipVideoPort
  212. Also=NtGdiDvpGetVideoPortBandwidth
  213. Also=NtGdiDvpGetVideoPortField
  214. Also=NtGdiDvpGetVideoPortFlipStatus
  215. Also=NtGdiDvpGetVideoPortInputFormats
  216. Also=NtGdiDvpGetVideoPortLine
  217. Also=NtGdiDvpGetVideoPortOutputFormats
  218. Also=NtGdiDvpGetVideoPortConnectInfo
  219. Also=NtGdiDvpGetVideoSignalStatus
  220. Also=NtGdiDvpUpdateVideoPort
  221. Also=NtGdiDvpWaitForVideoPortSync
  222. Also=NtGdiDvpAcquireNotification
  223. Also=NtGdiDvpReleaseNotification
  224. Also=NtGdiDxgGenericThunk
  225. Return=
  226. {ApiErrorRetvalTebCode, DDHAL_DRIVER_NOTHANDLED}, // @ApiName @NL
  227. End=
  228. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  229. ;;
  230. ;; User mode device driver functions.
  231. ;;
  232. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  233. TemplateName=NtGdiEngComputeGlyphSet
  234. Also=NtGdiEngLockSurface
  235. Also=NtGdiXLATEOBJ_cGetPalette
  236. Also=NtGdiCLIPOBJ_ppoGetPath
  237. Also=NtGdiEngCreateClip
  238. Also=NtGdiBRUSHOBJ_ulGetBrushColor
  239. Also=NtGdiBRUSHOBJ_pvAllocRbrush
  240. Also=NtGdiBRUSHOBJ_pvGetRbrush
  241. Also=NtGdiXFORMOBJ_iGetXform
  242. Also=NtGdiFONTOBJ_pxoGetXform
  243. Also=NtGdiFONTOBJ_cGetGlyphs
  244. Also=NtGdiFONTOBJ_pifi
  245. Also=NtGdiFONTOBJ_pfdg
  246. Also=NtGdiFONTOBJ_pQueryGlyphAttrs
  247. Also=NtGdiFONTOBJ_pvTrueTypeFontFile
  248. Also=NtGdiFONTOBJ_cGetAllGlyphHandles
  249. Also=NtGdiSTROBJ_dwGetCodePage
  250. Also=NtGdiHT_Get8BPPFormatPalette
  251. Also=NtGdiHT_Get8BPPMaskPalette
  252. Return=
  253. {ApiErrorRetvalTebCode, /*NULL*/0}, // @ApiName @NL
  254. End=
  255. TemplateName=NtGdiXLATEOBJ_iXlate
  256. Also=NtGdiCLIPOBJ_cEnumStart
  257. Return=
  258. {ApiErrorRetvalTebCode, -1}, // @ApiName @NL
  259. End=
  260. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  261. ;;
  262. ;; Generic USER functions
  263. ;;
  264. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  265. TemplateName=NtUserAssociateInputContext
  266. Return=
  267. {ApiErrorRetvalTebCode, AIC_ERROR}, // @ApiName @NL
  268. End=
  269. TemplateName=NtUserBreak
  270. Also=NtUserCallNextHookEx
  271. Also=NtUserCopyAcceleratorTable
  272. Also=NtUserCountClipboardFormats
  273. Also=NtUserDispatchMessage
  274. Also=NtUserDragObject
  275. Also=NtUserDrawMenuBarTemp
  276. Also=NtUserEvent
  277. Also=NtUserGetAppImeLevel
  278. Also=NtUserGetAsyncKeyState
  279. Also=NtUserGetCaretBlinkTime
  280. Also=NtUserGetClassName
  281. Also=NtUserGetClipboardFormatName
  282. Also=NtUserGetClipboardSequenceNumber
  283. Also=NtUserGetCPD
  284. Also=NtUserGetDoubleClickTime
  285. Also=NtUserGetGuiResources
  286. Also=NtUserGetInternalWindowPos
  287. Also=NtUserGetKeyboardLayoutList
  288. Also=NtUserGetKeyNameText
  289. Also=NtUserGetKeyState
  290. Also=NtUserGetListBoxInfo
  291. Also=NtUserGetMenuIndex
  292. Also=NtUserGetPriorityClipboardFormat
  293. Also=NtUserInternalGetWindowText
  294. Also=NtUserGetThreadState
  295. Also=NtUserLockWindowStation
  296. Also=NtUserMapVirtualKeyEx
  297. Also=NtUserMessageCall
  298. Also=NtUserQueryInputContext
  299. Also=NtUserRegisterClassExWOW
  300. Also=NtUserRegisterWindowMessage
  301. Also=NtUserSendInput
  302. Also=NtUserSetClassLong
  303. Also=NtUserSetClassWord
  304. Also=NtUserSetScrollInfo
  305. Also=NtUserSetSystemTimer
  306. Also=NtUserSetTimer
  307. Also=NtUserSetWindowLong
  308. Also=NtUserSetWindowRgn
  309. Also=NtUserSetWindowStationUser
  310. Also=NtUserSetWindowWord
  311. Also=NtUserToUnicodeEx
  312. Also=NtUserTranslateAccelerator
  313. Also=NtUserBlockInput
  314. Also=NtUserGetAtomName
  315. Also=NtUserCalcMenuBar
  316. Also=NtUserPaintMenuBar
  317. Return=
  318. {ApiErrorRetvalTebCode, 0}, // @ApiName @NL
  319. End=
  320. ;;
  321. ;; These functions are actually combined marshalling code for a large number of
  322. ;; functions that take the same number of parameters. They may need revisting.
  323. TemplateName=NtUserCallHwnd
  324. Also=NtUserCallHwndLock
  325. Also=NtUserCallHwndOpt
  326. Also=NtUserCallHwndParam
  327. Also=NtUserCallHwndParamLock
  328. Also=NtUserCallNoParam
  329. Also=NtUserCallOneParam
  330. Also=NtUserCallTwoParam
  331. Return=
  332. {ApiErrorRetvalTebCode, 0}, // @ApiName @NL
  333. End=
  334. TemplateName=NtUserChangeDisplaySettings
  335. Return=
  336. {ApiErrorRetvalTebCode, DISP_CHANGE_FAILED}, // @ApiName @NL
  337. End=
  338. TemplateName=NtUserCheckImeHotKey
  339. Return=
  340. {ApiErrorRetvalTebCode, IME_INVALID_HOTKEY}, // @ApiName @NL
  341. End=
  342. TemplateName=NtUserCheckMenuItem
  343. Also=NtUserGetMouseMovePoints
  344. Also=NtUserMenuItemFromPoint
  345. Also=NtUserVkKeyScanEx
  346. Also=NtUserWaitForInputIdle
  347. Also=NtUserGetMouseMovePointsEx
  348. Also=NtUserGetRawInputBuffer
  349. Also=NtUserGetRawInputData
  350. Also=NtUserGetRawInputDeviceInfo
  351. Also=NtUserGetRawInputDeviceList
  352. Also=NtUserGetRegisteredRawInputDevices
  353. Return=
  354. {ApiErrorRetvalTebCode, -1}, // @ApiName @NL
  355. End=
  356. TemplateName=NtUserDdeInitialize
  357. Return=
  358. {ApiErrorRetvalTebCode, DMLERR_INVALIDPARAMETER}, // @ApiName @NL
  359. End=
  360. TemplateName=NtUserExcludeUpdateRgn
  361. Also=NtUserGetUpdateRgn
  362. Return=
  363. {ApiErrorRetvalTebCode, ERROR}, // @ApiName @NL
  364. End=
  365. TemplateName=NtUserGetWOWClass
  366. Return=
  367. {ApiErrorRetvalTebCode, /*NULL*/0}, // @ApiName @NL
  368. End=
  369. TemplateName=NtUserHardErrorControl
  370. Return=
  371. {ApiErrorRetvalTebCode, HEC_ERROR}, // @ApiName @NL
  372. End=
  373. TemplateName=NtUserUpdateInstance
  374. Return=
  375. {ApiErrorRetvalTebCode, DMLERR_INVALIDPARAMETER}, // @ApiName @NL
  376. End=
  377. [IFunc]
  378. TemplateName=whwin32err
  379. Begin=
  380. @RetType(Return)
  381. End=
  382. [Code]
  383. TemplateName=whwin32
  384. CGenBegin=
  385. @NoFormat(
  386. /*
  387. * genthunk generated code: Do Not Modify
  388. * Thunks for console functions.
  389. *
  390. */
  391. #include "whwin32p.h"
  392. ASSERTNAME;
  393. )
  394. @NL
  395. // Error case list. @NL
  396. WOW64_SERVICE_ERROR_CASE sdwhwin32ErrorCase[] = { @NL
  397. @Template(whwin32err)
  398. { 0, 0 } @NL
  399. }; @NL
  400. @NL
  401. CGenEnd=