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.

232 lines
5.8 KiB

  1. #if VB_ONLY
  2. #define I_dxj_DirectXEvent8 DirectXEvent8
  3. #endif
  4. [helpcontext(87111)]
  5. typedef enum CONST_DSETUPFLAGS {
  6. // DSETUP flags. DirectX 5.0 apps should use these flags only.
  7. DSETUP_DDRAWDRV = 0x00000008,
  8. DSETUP_DSOUNDDRV = 0x00000010,
  9. DSETUP_DXCORE = 0x00010000,
  10. DSETUP_DIRECTX =0x00010018,
  11. DSETUP_TESTINSTALL =0x00020000
  12. } DSETUPFLAGS;
  13. [helpcontext(87112)]
  14. typedef enum CONST_DSETUPCALLBACKFLAGS {
  15. // DSETUP Message Info Codes, passed to callback as Reason parameter.
  16. DSETUP_CB_MSG_NOMESSAGE = 0,
  17. DSETUP_CB_MSG_CANTINSTALL_UNKNOWNOS = 1,
  18. DSETUP_CB_MSG_CANTINSTALL_NT = 2,
  19. DSETUP_CB_MSG_CANTINSTALL_BETA = 3,
  20. DSETUP_CB_MSG_CANTINSTALL_NOTWIN32 = 4,
  21. DSETUP_CB_MSG_CANTINSTALL_WRONGLANGUAGE = 5,
  22. DSETUP_CB_MSG_CANTINSTALL_WRONGPLATFORM = 6,
  23. DSETUP_CB_MSG_PREINSTALL_NT = 7,
  24. DSETUP_CB_MSG_NOTPREINSTALLEDONNT = 8,
  25. DSETUP_CB_MSG_SETUP_INIT_FAILED = 9,
  26. DSETUP_CB_MSG_INTERNAL_ERROR = 10,
  27. DSETUP_CB_MSG_CHECK_DRIVER_UPGRADE = 11,
  28. DSETUP_CB_MSG_OUTOFDISKSPACE = 12,
  29. DSETUP_CB_MSG_BEGIN_INSTALL = 13,
  30. DSETUP_CB_MSG_BEGIN_INSTALL_RUNTIME = 14,
  31. DSETUP_CB_MSG_BEGIN_INSTALL_DRIVERS = 15,
  32. DSETUP_CB_MSG_BEGIN_RESTORE_DRIVERS = 16,
  33. DSETUP_CB_MSG_FILECOPYERROR = 17,
  34. DSETUP_CB_UPGRADE_TYPE_MASK =0x000F,
  35. DSETUP_CB_UPGRADE_KEEP =0x0001,
  36. DSETUP_CB_UPGRADE_SAFE =0x0002,
  37. DSETUP_CB_UPGRADE_FORCE =0x0004,
  38. DSETUP_CB_UPGRADE_UNKNOWN =0x0008,
  39. DSETUP_CB_UPGRADE_HASWARNINGS =0x0100,
  40. DSETUP_CB_UPGRADE_CANTBACKUP =0x0200,
  41. DSETUP_CB_UPGRADE_DEVICE_ACTIVE =0x0800,
  42. DSETUP_CB_UPGRADE_DEVICE_DISPLAY =0x1000,
  43. DSETUP_CB_UPGRADE_DEVICE_MEDIA =0x2000
  44. } DSETUPCALLBACKFLAGS;
  45. [helpcontext(87113)]
  46. typedef enum CONST_DSETUPERR {
  47. DSETUPERR_SUCCESS_RESTART = 1,
  48. DSETUPERR_SUCCESS = 0,
  49. DSETUPERR_BADWINDOWSVERSION = -1,
  50. DSETUPERR_SOURCEFILENOTFOUND = -2,
  51. DSETUPERR_BADSOURCESIZE = -3,
  52. DSETUPERR_BADSOURCETIME = -4,
  53. DSETUPERR_NOCOPY = -5,
  54. DSETUPERR_OUTOFDISKSPACE = -6,
  55. DSETUPERR_CANTFINDINF = -7,
  56. DSETUPERR_CANTFINDDIR = -8,
  57. DSETUPERR_INTERNAL = -9,
  58. DSETUPERR_NTWITHNO3D = -10,
  59. DSETUPERR_UNKNOWNOS = -11,
  60. DSETUPERR_USERHITCANCEL = -12,
  61. DSETUPERR_NOTPREINSTALLEDONNT = -13
  62. } DSETUPERR;
  63. #ifdef VB_ONLY
  64. #define D3DVECTOR_CDESC D3DVECTOR
  65. #define RECT_CDESC RECT
  66. #define DXGUID_CDESC DXGUID
  67. #define PALETTEENTRY_CDESC PALETTEENTRY
  68. #define D3PALETTEENTRY_CDESC PALETTEENTRY
  69. #define D3DCOLORVALUE_CDESC D3DCOLORVALUE
  70. #define D3DMATERIAL8_CDESC D3DMATERIAL8
  71. #define POINT_CDESC POINT
  72. #define D3DVECTOR2_CDESC D3DVECTOR2
  73. #define D3DVECTOR4_CDESC D3DVECTOR4
  74. #define D3DMATRIX_CDESC D3DMATRIX
  75. #define D3DVIEWPORT8_CDESC D3DVIEWPORT8
  76. #define D3DPLANE_CDESC D3DPLANE
  77. #endif
  78. #ifdef C_ONLY
  79. [helpcontext(88888)]
  80. typedef struct DXDRIVERINFO_CDESC
  81. {
  82. BSTR strGuid;
  83. BSTR strDescription;
  84. BSTR strName;
  85. } DXDRIVERINFO_CDESC;
  86. #endif
  87. [helpcontext(86231)]
  88. typedef struct D3DVECTOR_CDESC
  89. {
  90. FLOAT x;
  91. FLOAT y;
  92. FLOAT z;
  93. } D3DVECTOR_CDESC;
  94. [helpcontext(86232)]
  95. typedef struct D3DVECTOR2_CDESC {
  96. FLOAT x;
  97. FLOAT y;
  98. } D3DVECTOR2_CDESC;
  99. [helpcontext(86233)]
  100. typedef struct D3DVECTOR4_CDESC {
  101. FLOAT x;
  102. FLOAT y;
  103. FLOAT z;
  104. FLOAT w;
  105. } D3DVECTOR4_CDESC;
  106. [helpcontext(87114)]
  107. typedef struct RECT_CDESC
  108. {
  109. LONG left;
  110. LONG top;
  111. LONG right;
  112. LONG bottom;
  113. } RECT_CDESC;
  114. [helpcontext(87115)]
  115. typedef struct DXGUID_CDESC {
  116. LONG data1;
  117. SHORT data2;
  118. SHORT data3;
  119. BYTE data4[8];
  120. } DXGUID_CDESC;
  121. [helpcontext(400400)]
  122. typedef struct PALETTEENTRY_CDESC
  123. {
  124. BYTE red;
  125. BYTE green;
  126. BYTE blue;
  127. BYTE flags;
  128. } PALETTEENTRY_CDESC;
  129. [helpcontext(86207)]
  130. typedef struct D3DCOLORVALUE_CDESC {
  131. FLOAT r;
  132. FLOAT g;
  133. FLOAT b;
  134. FLOAT a;
  135. } D3DCOLORVALUE_CDESC;
  136. [helpcontext(87116)]
  137. typedef struct POINT_CDESC {
  138. LONG x;
  139. LONG y;
  140. } POINT_CDESC;
  141. [helpcontext(86218)]
  142. typedef struct D3DMATERIAL8_CDESC {
  143. D3DCOLORVALUE_CDESC diffuse; /* Diffuse color RGBA */
  144. D3DCOLORVALUE_CDESC ambient; /* Ambient color RGB */
  145. D3DCOLORVALUE_CDESC specular; /* Specular 'shininess' */
  146. D3DCOLORVALUE_CDESC emissive; /* Emissive color RGB */
  147. FLOAT power; /* Sharpness if specular highlight */
  148. } D3DMATERIAL8_CDESC;
  149. [helpcontext(86220)]
  150. typedef struct D3DPLANE_CDESC {
  151. FLOAT a;
  152. FLOAT b;
  153. FLOAT c;
  154. FLOAT d;
  155. } D3DPLANE_CDESC;
  156. [
  157. object,
  158. uuid(D1CA9B18-9ED2-43b5-8759-7A5C892D4C5C),
  159. helpstring("I_dxj_DirectXEvent8 Interface"),
  160. pointer_default(unique),
  161. oleautomation,
  162. helpcontext(318600)
  163. ]
  164. interface I_dxj_DirectXEvent8 : IUnknown
  165. {
  166. #ifdef _WIN64
  167. [helpcontext(86026)] HRESULT DXCallback([in] HANDLE eventid);
  168. #else
  169. [helpcontext(86026)] HRESULT DXCallback([in] LONG eventid);
  170. #endif
  171. };
  172. [helpcontext(86219)]
  173. typedef struct D3DMATRIX_CDESC
  174. {
  175. FLOAT m11, m12, m13, m14;
  176. FLOAT m21, m22, m23, m24;
  177. FLOAT m31, m32, m33, m34;
  178. FLOAT m41, m42, m43, m44;
  179. } D3DMATRIX_CDESC;
  180. [helpcontext(86237)]
  181. typedef struct D3DVIEWPORT8_CDESC
  182. {
  183. LONG X;
  184. LONG Y; /* Viewport Top left */
  185. LONG Width;
  186. LONG Height; /* Viewport Dimensions */
  187. FLOAT MinZ; /* Min/max of clip Volume */
  188. FLOAT MaxZ;
  189. } D3DVIEWPORT8_CDESC;