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.

370 lines
15 KiB

  1. /*==========================================================================;
  2. *
  3. * Copyright (C) 1995-1997 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: d3drm.h
  6. * Content: Direct3DRM include file
  7. *@@BEGIN_MSINTERNAL
  8. *
  9. * History:
  10. * Date By Reason
  11. * ==== == ======
  12. * 27/02/96 stevela Moved from RL to D3DRM.
  13. *@@END_MSINTERNAL
  14. *
  15. ***************************************************************************/
  16. #ifndef __D3DRM_H__
  17. #define __D3DRM_H__
  18. #include "ddraw.h"
  19. #ifdef __cplusplus
  20. struct IDirect3DRM;
  21. #endif
  22. typedef struct IDirect3DRM *LPDIRECT3DRM;
  23. //@@BEGIN_MSINTERNAL
  24. #ifdef WINNT
  25. #include "d3prmobj.h"
  26. #else
  27. #include "d3drmobj.h"
  28. #endif
  29. #if 0
  30. //@@END_MSINTERNAL
  31. #include "d3drmobj.h"
  32. //@@BEGIN_MSINTERNAL
  33. #endif
  34. //@@END_MSINTERNAL
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38. //@@BEGIN_MSINTERNAL
  39. typedef void (CDECL *D3DRMERRORHANDLER)(HRESULT error, void *arg);
  40. #ifdef BUILD_RLAPI
  41. typedef D3DRMERRORHANDLER RLErrorHandler;
  42. #endif
  43. //@@END_MSINTERNAL
  44. DEFINE_GUID(IID_IDirect3DRM, 0x2bc49361, 0x8327, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  45. DEFINE_GUID(IID_IDirect3DRM2, 0x4516ecc8, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
  46. DEFINE_GUID(IID_IDirect3DRM3, 0x4516ec83, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
  47. WIN_TYPES(IDirect3DRM, DIRECT3DRM);
  48. WIN_TYPES(IDirect3DRM2, DIRECT3DRM2);
  49. WIN_TYPES(IDirect3DRM3, DIRECT3DRM3);
  50. /*
  51. * Direct3DRM Object Class (for CoCreateInstance())
  52. */
  53. DEFINE_GUID(CLSID_CDirect3DRM, 0x4516ec41, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
  54. //@@BEGIN_MSINTERNAL
  55. /* Set the Reality Lab memory allocators */
  56. STDAPI IDirect3DRMSetAllocator(D3DRMMALLOCFUNCTION, D3DRMREALLOCFUNCTION, D3DRMFREEFUNCTION);
  57. STDAPI IDirect3DRMGetAllocator(LPD3DRMMALLOCFUNCTION, LPD3DRMREALLOCFUNCTION, LPD3DRMFREEFUNCTION);
  58. //@@END_MSINTERNAL
  59. /* Create a Direct3DRM API */
  60. STDAPI Direct3DRMCreate(LPDIRECT3DRM FAR *lplpDirect3DRM);
  61. #undef INTERFACE
  62. #define INTERFACE IDirect3DRM
  63. DECLARE_INTERFACE_(IDirect3DRM, IUnknown)
  64. {
  65. IUNKNOWN_METHODS(PURE);
  66. STDMETHOD(CreateObject)
  67. (THIS_ REFCLSID rclsid, LPUNKNOWN pUnkOuter, REFIID riid, LPVOID FAR* ppv) PURE;
  68. STDMETHOD(CreateFrame) (THIS_ LPDIRECT3DRMFRAME, LPDIRECT3DRMFRAME *) PURE;
  69. STDMETHOD(CreateMesh) (THIS_ LPDIRECT3DRMMESH *) PURE;
  70. STDMETHOD(CreateMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER *) PURE;
  71. STDMETHOD(CreateFace) (THIS_ LPDIRECT3DRMFACE *) PURE;
  72. STDMETHOD(CreateAnimation) (THIS_ LPDIRECT3DRMANIMATION *) PURE;
  73. STDMETHOD(CreateAnimationSet)(THIS_ LPDIRECT3DRMANIMATIONSET *) PURE;
  74. STDMETHOD(CreateTexture) (THIS_ LPD3DRMIMAGE, LPDIRECT3DRMTEXTURE *) PURE;
  75. STDMETHOD(CreateLight) (THIS_ D3DRMLIGHTTYPE, D3DCOLOR, LPDIRECT3DRMLIGHT *) PURE;
  76. STDMETHOD(CreateLightRGB)
  77. (THIS_ D3DRMLIGHTTYPE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMLIGHT *) PURE;
  78. STDMETHOD(CreateMaterial) (THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL *) PURE;
  79. STDMETHOD(CreateDevice) (THIS_ DWORD, DWORD, LPDIRECT3DRMDEVICE *) PURE;
  80. /* Create a Windows Device using DirectDraw surfaces */
  81. STDMETHOD(CreateDeviceFromSurface)
  82. ( THIS_ LPGUID lpGUID, LPDIRECTDRAW lpDD,
  83. LPDIRECTDRAWSURFACE lpDDSBack, LPDIRECT3DRMDEVICE *
  84. ) PURE;
  85. /* Create a Windows Device using D3D objects */
  86. STDMETHOD(CreateDeviceFromD3D)
  87. ( THIS_ LPDIRECT3D lpD3D, LPDIRECT3DDEVICE lpD3DDev,
  88. LPDIRECT3DRMDEVICE *
  89. ) PURE;
  90. STDMETHOD(CreateDeviceFromClipper)
  91. ( THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID,
  92. int width, int height, LPDIRECT3DRMDEVICE *) PURE;
  93. STDMETHOD(CreateTextureFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS, LPDIRECT3DRMTEXTURE *) PURE;
  94. STDMETHOD(CreateShadow)
  95. ( THIS_ LPDIRECT3DRMVISUAL, LPDIRECT3DRMLIGHT,
  96. D3DVALUE px, D3DVALUE py, D3DVALUE pz,
  97. D3DVALUE nx, D3DVALUE ny, D3DVALUE nz,
  98. LPDIRECT3DRMVISUAL *
  99. ) PURE;
  100. STDMETHOD(CreateViewport)
  101. ( THIS_ LPDIRECT3DRMDEVICE, LPDIRECT3DRMFRAME, DWORD, DWORD,
  102. DWORD, DWORD, LPDIRECT3DRMVIEWPORT *
  103. ) PURE;
  104. STDMETHOD(CreateWrap)
  105. ( THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME,
  106. D3DVALUE ox, D3DVALUE oy, D3DVALUE oz,
  107. D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
  108. D3DVALUE ux, D3DVALUE uy, D3DVALUE uz,
  109. D3DVALUE ou, D3DVALUE ov,
  110. D3DVALUE su, D3DVALUE sv,
  111. LPDIRECT3DRMWRAP *
  112. ) PURE;
  113. STDMETHOD(CreateUserVisual) (THIS_ D3DRMUSERVISUALCALLBACK, LPVOID lPArg, LPDIRECT3DRMUSERVISUAL *) PURE;
  114. STDMETHOD(LoadTexture) (THIS_ const char *, LPDIRECT3DRMTEXTURE *) PURE;
  115. STDMETHOD(LoadTextureFromResource) (THIS_ HRSRC rs, LPDIRECT3DRMTEXTURE *) PURE;
  116. STDMETHOD(SetSearchPath) (THIS_ LPCSTR) PURE;
  117. STDMETHOD(AddSearchPath) (THIS_ LPCSTR) PURE;
  118. STDMETHOD(GetSearchPath) (THIS_ DWORD *size_return, LPSTR path_return) PURE;
  119. STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE;
  120. STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE;
  121. STDMETHOD(GetDevices) (THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE;
  122. STDMETHOD(GetNamedObject) (THIS_ const char *, LPDIRECT3DRMOBJECT *) PURE;
  123. STDMETHOD(EnumerateObjects) (THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE;
  124. STDMETHOD(Load)
  125. ( THIS_ LPVOID, LPVOID, LPIID *, DWORD, D3DRMLOADOPTIONS,
  126. D3DRMLOADCALLBACK, LPVOID, D3DRMLOADTEXTURECALLBACK, LPVOID,
  127. LPDIRECT3DRMFRAME
  128. ) PURE;
  129. STDMETHOD(Tick) (THIS_ D3DVALUE) PURE;
  130. };
  131. #undef INTERFACE
  132. #define INTERFACE IDirect3DRM2
  133. DECLARE_INTERFACE_(IDirect3DRM2, IUnknown)
  134. {
  135. IUNKNOWN_METHODS(PURE);
  136. STDMETHOD(CreateObject)
  137. (THIS_ REFCLSID rclsid, LPUNKNOWN pUnkOuter, REFIID riid, LPVOID FAR* ppv) PURE;
  138. STDMETHOD(CreateFrame) (THIS_ LPDIRECT3DRMFRAME, LPDIRECT3DRMFRAME2 *) PURE;
  139. STDMETHOD(CreateMesh) (THIS_ LPDIRECT3DRMMESH *) PURE;
  140. STDMETHOD(CreateMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER2 *) PURE;
  141. STDMETHOD(CreateFace) (THIS_ LPDIRECT3DRMFACE *) PURE;
  142. STDMETHOD(CreateAnimation) (THIS_ LPDIRECT3DRMANIMATION *) PURE;
  143. STDMETHOD(CreateAnimationSet)(THIS_ LPDIRECT3DRMANIMATIONSET *) PURE;
  144. STDMETHOD(CreateTexture) (THIS_ LPD3DRMIMAGE, LPDIRECT3DRMTEXTURE2 *) PURE;
  145. STDMETHOD(CreateLight) (THIS_ D3DRMLIGHTTYPE, D3DCOLOR, LPDIRECT3DRMLIGHT *) PURE;
  146. STDMETHOD(CreateLightRGB)
  147. (THIS_ D3DRMLIGHTTYPE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMLIGHT *) PURE;
  148. STDMETHOD(CreateMaterial) (THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL *) PURE;
  149. STDMETHOD(CreateDevice) (THIS_ DWORD, DWORD, LPDIRECT3DRMDEVICE2 *) PURE;
  150. /* Create a Windows Device using DirectDraw surfaces */
  151. STDMETHOD(CreateDeviceFromSurface)
  152. ( THIS_ LPGUID lpGUID, LPDIRECTDRAW lpDD,
  153. LPDIRECTDRAWSURFACE lpDDSBack, LPDIRECT3DRMDEVICE2 *
  154. ) PURE;
  155. /* Create a Windows Device using D3D objects */
  156. STDMETHOD(CreateDeviceFromD3D)
  157. ( THIS_ LPDIRECT3D2 lpD3D, LPDIRECT3DDEVICE2 lpD3DDev,
  158. LPDIRECT3DRMDEVICE2 *
  159. ) PURE;
  160. STDMETHOD(CreateDeviceFromClipper)
  161. ( THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID,
  162. int width, int height, LPDIRECT3DRMDEVICE2 *) PURE;
  163. STDMETHOD(CreateTextureFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS, LPDIRECT3DRMTEXTURE2 *) PURE;
  164. STDMETHOD(CreateShadow)
  165. ( THIS_ LPDIRECT3DRMVISUAL, LPDIRECT3DRMLIGHT,
  166. D3DVALUE px, D3DVALUE py, D3DVALUE pz,
  167. D3DVALUE nx, D3DVALUE ny, D3DVALUE nz,
  168. LPDIRECT3DRMVISUAL *
  169. ) PURE;
  170. STDMETHOD(CreateViewport)
  171. ( THIS_ LPDIRECT3DRMDEVICE, LPDIRECT3DRMFRAME, DWORD, DWORD,
  172. DWORD, DWORD, LPDIRECT3DRMVIEWPORT *
  173. ) PURE;
  174. STDMETHOD(CreateWrap)
  175. ( THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME,
  176. D3DVALUE ox, D3DVALUE oy, D3DVALUE oz,
  177. D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
  178. D3DVALUE ux, D3DVALUE uy, D3DVALUE uz,
  179. D3DVALUE ou, D3DVALUE ov,
  180. D3DVALUE su, D3DVALUE sv,
  181. LPDIRECT3DRMWRAP *
  182. ) PURE;
  183. STDMETHOD(CreateUserVisual) (THIS_ D3DRMUSERVISUALCALLBACK, LPVOID lPArg, LPDIRECT3DRMUSERVISUAL *) PURE;
  184. STDMETHOD(LoadTexture) (THIS_ const char *, LPDIRECT3DRMTEXTURE2 *) PURE;
  185. STDMETHOD(LoadTextureFromResource) (THIS_ HMODULE hModule, LPCTSTR strName, LPCTSTR strType, LPDIRECT3DRMTEXTURE2 *) PURE;
  186. STDMETHOD(SetSearchPath) (THIS_ LPCSTR) PURE;
  187. STDMETHOD(AddSearchPath) (THIS_ LPCSTR) PURE;
  188. STDMETHOD(GetSearchPath) (THIS_ DWORD *size_return, LPSTR path_return) PURE;
  189. STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE;
  190. STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE;
  191. STDMETHOD(GetDevices) (THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE;
  192. STDMETHOD(GetNamedObject) (THIS_ const char *, LPDIRECT3DRMOBJECT *) PURE;
  193. STDMETHOD(EnumerateObjects) (THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE;
  194. STDMETHOD(Load)
  195. ( THIS_ LPVOID, LPVOID, LPIID *, DWORD, D3DRMLOADOPTIONS,
  196. D3DRMLOADCALLBACK, LPVOID, D3DRMLOADTEXTURECALLBACK, LPVOID,
  197. LPDIRECT3DRMFRAME
  198. ) PURE;
  199. STDMETHOD(Tick) (THIS_ D3DVALUE) PURE;
  200. STDMETHOD(CreateProgressiveMesh)(THIS_ LPDIRECT3DRMPROGRESSIVEMESH *) PURE;
  201. };
  202. #undef INTERFACE
  203. #define INTERFACE IDirect3DRM3
  204. DECLARE_INTERFACE_(IDirect3DRM3, IUnknown)
  205. {
  206. IUNKNOWN_METHODS(PURE);
  207. STDMETHOD(CreateObject)
  208. (THIS_ REFCLSID rclsid, LPUNKNOWN pUnkOuter, REFIID riid, LPVOID FAR* ppv) PURE;
  209. STDMETHOD(CreateFrame) (THIS_ LPDIRECT3DRMFRAME3, LPDIRECT3DRMFRAME3 *) PURE;
  210. STDMETHOD(CreateMesh) (THIS_ LPDIRECT3DRMMESH *) PURE;
  211. STDMETHOD(CreateMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER3 *) PURE;
  212. STDMETHOD(CreateFace) (THIS_ LPDIRECT3DRMFACE2 *) PURE;
  213. STDMETHOD(CreateAnimation) (THIS_ LPDIRECT3DRMANIMATION2 *) PURE;
  214. STDMETHOD(CreateAnimationSet)(THIS_ LPDIRECT3DRMANIMATIONSET2 *) PURE;
  215. STDMETHOD(CreateTexture) (THIS_ LPD3DRMIMAGE, LPDIRECT3DRMTEXTURE3 *) PURE;
  216. STDMETHOD(CreateLight) (THIS_ D3DRMLIGHTTYPE, D3DCOLOR, LPDIRECT3DRMLIGHT *) PURE;
  217. STDMETHOD(CreateLightRGB)
  218. (THIS_ D3DRMLIGHTTYPE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMLIGHT *) PURE;
  219. STDMETHOD(CreateMaterial) (THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL2 *) PURE;
  220. STDMETHOD(CreateDevice) (THIS_ DWORD, DWORD, LPDIRECT3DRMDEVICE3 *) PURE;
  221. /* Create a Windows Device using DirectDraw surfaces */
  222. STDMETHOD(CreateDeviceFromSurface)
  223. ( THIS_ LPGUID lpGUID, LPDIRECTDRAW lpDD,
  224. LPDIRECTDRAWSURFACE lpDDSBack, DWORD dwFlags, LPDIRECT3DRMDEVICE3 *
  225. ) PURE;
  226. /* Create a Windows Device using D3D objects */
  227. STDMETHOD(CreateDeviceFromD3D)
  228. ( THIS_ LPDIRECT3D2 lpD3D, LPDIRECT3DDEVICE2 lpD3DDev,
  229. LPDIRECT3DRMDEVICE3 *
  230. ) PURE;
  231. STDMETHOD(CreateDeviceFromClipper)
  232. ( THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID,
  233. int width, int height, LPDIRECT3DRMDEVICE3 *) PURE;
  234. STDMETHOD(CreateTextureFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS, LPDIRECT3DRMTEXTURE3 *) PURE;
  235. STDMETHOD(CreateShadow)
  236. ( THIS_ LPUNKNOWN, LPDIRECT3DRMLIGHT,
  237. D3DVALUE px, D3DVALUE py, D3DVALUE pz,
  238. D3DVALUE nx, D3DVALUE ny, D3DVALUE nz,
  239. LPDIRECT3DRMSHADOW2 *
  240. ) PURE;
  241. STDMETHOD(CreateViewport)
  242. ( THIS_ LPDIRECT3DRMDEVICE3, LPDIRECT3DRMFRAME3, DWORD, DWORD,
  243. DWORD, DWORD, LPDIRECT3DRMVIEWPORT2 *
  244. ) PURE;
  245. STDMETHOD(CreateWrap)
  246. ( THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME3,
  247. D3DVALUE ox, D3DVALUE oy, D3DVALUE oz,
  248. D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
  249. D3DVALUE ux, D3DVALUE uy, D3DVALUE uz,
  250. D3DVALUE ou, D3DVALUE ov,
  251. D3DVALUE su, D3DVALUE sv,
  252. LPDIRECT3DRMWRAP *
  253. ) PURE;
  254. STDMETHOD(CreateUserVisual) (THIS_ D3DRMUSERVISUALCALLBACK, LPVOID lPArg, LPDIRECT3DRMUSERVISUAL *) PURE;
  255. STDMETHOD(LoadTexture) (THIS_ const char *, LPDIRECT3DRMTEXTURE3 *) PURE;
  256. STDMETHOD(LoadTextureFromResource) (THIS_ HMODULE hModule, LPCTSTR strName, LPCTSTR strType, LPDIRECT3DRMTEXTURE3 *) PURE;
  257. STDMETHOD(SetSearchPath) (THIS_ LPCSTR) PURE;
  258. STDMETHOD(AddSearchPath) (THIS_ LPCSTR) PURE;
  259. STDMETHOD(GetSearchPath) (THIS_ DWORD *size_return, LPSTR path_return) PURE;
  260. STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE;
  261. STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE;
  262. STDMETHOD(GetDevices) (THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE;
  263. STDMETHOD(GetNamedObject) (THIS_ const char *, LPDIRECT3DRMOBJECT *) PURE;
  264. STDMETHOD(EnumerateObjects) (THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE;
  265. STDMETHOD(Load)
  266. ( THIS_ LPVOID, LPVOID, LPIID *, DWORD, D3DRMLOADOPTIONS,
  267. D3DRMLOADCALLBACK, LPVOID, D3DRMLOADTEXTURE3CALLBACK, LPVOID,
  268. LPDIRECT3DRMFRAME3
  269. ) PURE;
  270. STDMETHOD(Tick) (THIS_ D3DVALUE) PURE;
  271. STDMETHOD(CreateProgressiveMesh)(THIS_ LPDIRECT3DRMPROGRESSIVEMESH *) PURE;
  272. /* Used with IDirect3DRMObject2 */
  273. STDMETHOD(RegisterClient) (THIS_ REFGUID rguid, LPDWORD lpdwID) PURE;
  274. STDMETHOD(UnregisterClient) (THIS_ REFGUID rguid) PURE;
  275. STDMETHOD(CreateClippedVisual) (THIS_ LPDIRECT3DRMVISUAL, LPDIRECT3DRMCLIPPEDVISUAL *) PURE;
  276. STDMETHOD(SetOptions) (THIS_ DWORD);
  277. STDMETHOD(GetOptions) (THIS_ LPDWORD);
  278. };
  279. #define D3DRM_OK DD_OK
  280. #define D3DRMERR_BADOBJECT MAKE_DDHRESULT(781)
  281. #define D3DRMERR_BADTYPE MAKE_DDHRESULT(782)
  282. #define D3DRMERR_BADALLOC MAKE_DDHRESULT(783)
  283. #define D3DRMERR_FACEUSED MAKE_DDHRESULT(784)
  284. #define D3DRMERR_NOTFOUND MAKE_DDHRESULT(785)
  285. #define D3DRMERR_NOTDONEYET MAKE_DDHRESULT(786)
  286. #define D3DRMERR_FILENOTFOUND MAKE_DDHRESULT(787)
  287. #define D3DRMERR_BADFILE MAKE_DDHRESULT(788)
  288. #define D3DRMERR_BADDEVICE MAKE_DDHRESULT(789)
  289. #define D3DRMERR_BADVALUE MAKE_DDHRESULT(790)
  290. #define D3DRMERR_BADMAJORVERSION MAKE_DDHRESULT(791)
  291. #define D3DRMERR_BADMINORVERSION MAKE_DDHRESULT(792)
  292. #define D3DRMERR_UNABLETOEXECUTE MAKE_DDHRESULT(793)
  293. #define D3DRMERR_LIBRARYNOTFOUND MAKE_DDHRESULT(794)
  294. #define D3DRMERR_INVALIDLIBRARY MAKE_DDHRESULT(795)
  295. #define D3DRMERR_PENDING MAKE_DDHRESULT(796)
  296. #define D3DRMERR_NOTENOUGHDATA MAKE_DDHRESULT(797)
  297. #define D3DRMERR_REQUESTTOOLARGE MAKE_DDHRESULT(798)
  298. #define D3DRMERR_REQUESTTOOSMALL MAKE_DDHRESULT(799)
  299. #define D3DRMERR_CONNECTIONLOST MAKE_DDHRESULT(800)
  300. #define D3DRMERR_LOADABORTED MAKE_DDHRESULT(801)
  301. #define D3DRMERR_NOINTERNET MAKE_DDHRESULT(802)
  302. #define D3DRMERR_BADCACHEFILE MAKE_DDHRESULT(803)
  303. #define D3DRMERR_BOXNOTSET MAKE_DDHRESULT(804)
  304. #define D3DRMERR_BADPMDATA MAKE_DDHRESULT(805)
  305. #define D3DRMERR_CLIENTNOTREGISTERED MAKE_DDHRESULT(806)
  306. #define D3DRMERR_NOTCREATEDFROMDDS MAKE_DDHRESULT(807)
  307. #define D3DRMERR_NOSUCHKEY MAKE_DDHRESULT(808)
  308. #define D3DRMERR_INCOMPATABLEKEY MAKE_DDHRESULT(809)
  309. #define D3DRMERR_ELEMENTINUSE MAKE_DDHRESULT(810)
  310. #define D3DRMERR_TEXTUREFORMATNOTFOUND MAKE_DDHRESULT(811)
  311. #define D3DRMERR_NOTAGGREGATED MAKE_DDHRESULT(812)
  312. #ifdef __cplusplus
  313. };
  314. #endif
  315. #endif /* _D3DRMAPI_H_ */