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.

127 lines
5.4 KiB

  1. //
  2. // This .CPP file should be included once in your project. It defines all GUIDs
  3. // used by DXTransforms as well as the Pixel formats for DX Surfaces
  4. //
  5. #define DX_DECLARE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
  6. EXTERN_C const GUID name \
  7. = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
  8. //
  9. // Pixel format definitions
  10. //
  11. // {e436eb78-524f-11ce-9f53-0020af0ba770}
  12. DX_DECLARE_GUID(DDPF_RGB1,
  13. 0xe436eb78, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70);
  14. // {BBF7D3F3-143F-11d1-B50A-0000F8756A10}
  15. DX_DECLARE_GUID(DDPF_RGB2,
  16. 0xbbf7d3f3, 0x143f, 0x11d1, 0xb5, 0xa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  17. // {e436eb79-524f-11ce-9f53-0020af0ba770}
  18. DX_DECLARE_GUID(DDPF_RGB4,
  19. 0xe436eb79, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70);
  20. // {e436eb7a-524f-11ce-9f53-0020af0ba770}
  21. DX_DECLARE_GUID(DDPF_RGB8,
  22. 0xe436eb7a, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70);
  23. // {BBF7D3F6-143F-11d1-B50A-0000F8756A10}
  24. DX_DECLARE_GUID(DDPF_RGB332,
  25. 0xbbf7d3f6, 0x143f, 0x11d1, 0xb5, 0xa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  26. // {BBF7D3F7-143F-11d1-B50A-0000F8756A10}
  27. DX_DECLARE_GUID(DDPF_ARGB4444,
  28. 0xbbf7d3f7, 0x143f, 0x11d1, 0xb5, 0xa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  29. // {e436eb7b-524f-11ce-9f53-0020af0ba770}
  30. DX_DECLARE_GUID(DDPF_RGB565,
  31. 0xe436eb7b, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70);
  32. // {BBF7D3F9-143F-11d1-B50A-0000F8756A10}
  33. DX_DECLARE_GUID(DDPF_BGR565,
  34. 0xbbf7d3f9, 0x143f, 0x11d1, 0xb5, 0xa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  35. // {e436eb7c-524f-11ce-9f53-0020af0ba770}
  36. DX_DECLARE_GUID(DDPF_RGB555,
  37. 0xe436eb7c, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70);
  38. // {BBF7D3FB-143F-11d1-B50A-0000F8756A10}
  39. DX_DECLARE_GUID(DDPF_ARGB1555,
  40. 0xbbf7d3fb, 0x143f, 0x11d1, 0xb5, 0xa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  41. // {e436eb7d-524f-11ce-9f53-0020af0ba770}
  42. DX_DECLARE_GUID(DDPF_RGB24,
  43. 0xe436eb7d, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70);
  44. // {BBF7D3FD-143F-11d1-B50A-0000F8756A10}
  45. DX_DECLARE_GUID(DDPF_BGR24,
  46. 0xbbf7d3fd, 0x143f, 0x11d1, 0xb5, 0xa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  47. // {e436eb7e-524f-11ce-9f53-0020af0ba770}
  48. DX_DECLARE_GUID(DDPF_RGB32,
  49. 0xe436eb7e, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70);
  50. // {BBF7D3FF-143F-11d1-B50A-0000F8756A10}
  51. DX_DECLARE_GUID(DDPF_BGR32,
  52. 0xbbf7d3ff, 0x143f, 0x11d1, 0xb5, 0xa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  53. // {BBF7D401-143F-11d1-B50A-0000F8756A10}
  54. DX_DECLARE_GUID(DDPF_ABGR32,
  55. 0xbbf7d401, 0x143f, 0x11d1, 0xb5, 0xa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  56. // {773c9ac0-3274-11d0-B724-00aa006c1A01}
  57. DX_DECLARE_GUID(DDPF_ARGB32,
  58. 0x773c9ac0, 0x3274, 0x11d0, 0xb7, 0x24, 0x0, 0xaa, 0x0, 0x6c, 0x1a, 0x1 );
  59. // {BBF7D403-143F-11d1-B50A-0000F8756A10}
  60. DX_DECLARE_GUID(DDPF_PMARGB32,
  61. 0xbbf7d403, 0x143f, 0x11d1, 0xb5, 0xa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  62. // {7846F94E-3915-11d1-99AA-0000F8756A10}
  63. DX_DECLARE_GUID(DDPF_A1,
  64. 0x7846f94e, 0x3915, 0x11d1, 0x99, 0xaa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  65. // {7846F94F-3915-11d1-99AA-0000F8756A10}
  66. DX_DECLARE_GUID(DDPF_A2,
  67. 0x7846f94f, 0x3915, 0x11d1, 0x99, 0xaa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  68. // {7846F950-3915-11d1-99AA-0000F8756A10}
  69. DX_DECLARE_GUID(DDPF_A4,
  70. 0x7846f950, 0x3915, 0x11d1, 0x99, 0xaa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  71. // {7846F951-3915-11d1-99AA-0000F8756A10}
  72. DX_DECLARE_GUID(DDPF_A8,
  73. 0x7846f951, 0x3915, 0x11d1, 0x99, 0xaa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  74. // {7846F952-3915-11d1-99AA-0000F8756A10}
  75. DX_DECLARE_GUID(DDPF_Z8,
  76. 0x7846f952, 0x3915, 0x11d1, 0x99, 0xaa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  77. // {7846F953-3915-11d1-99AA-0000F8756A10}
  78. DX_DECLARE_GUID(DDPF_Z16,
  79. 0x7846f953, 0x3915, 0x11d1, 0x99, 0xaa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  80. // {7846F954-3915-11d1-99AA-0000F8756A10}
  81. DX_DECLARE_GUID(DDPF_Z24,
  82. 0x7846f954, 0x3915, 0x11d1, 0x99, 0xaa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  83. // {7846F955-3915-11d1-99AA-0000F8756A10}
  84. DX_DECLARE_GUID(DDPF_Z32,
  85. 0x7846f955, 0x3915, 0x11d1, 0x99, 0xaa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  86. //
  87. // Component categories
  88. //
  89. // {C501EDBE-9E70-11d1-9053-00C04FD9189D}
  90. DX_DECLARE_GUID(CATID_DXImageTransform,
  91. 0xc501edbe, 0x9e70, 0x11d1, 0x90, 0x53, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);
  92. // {C501EDBF-9E70-11d1-9053-00C04FD9189D}
  93. DX_DECLARE_GUID(CATID_DX3DTransform,
  94. 0xc501edbf, 0x9e70, 0x11d1, 0x90, 0x53, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);
  95. // {ACAC94FC-E5CF-11d1-9066-00C04FD9189D}
  96. DX_DECLARE_GUID(CATID_DXAuthoringTransform,
  97. 0xacac94fc, 0xe5cf, 0x11d1, 0x90, 0x66, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);
  98. // {52BA7097-B52C-11d1-81CB-0000F87557DB}
  99. DX_DECLARE_GUID(CATID_DXSurface,
  100. 0x52ba7097, 0xb52c, 0x11d1, 0x81, 0xcb, 0x0, 0x0, 0xf8, 0x75, 0x57, 0xdb);
  101. //
  102. // Service IDs.
  103. //
  104. // NOTE: The service ID for direct draw is == IID_IDirectDraw3 for compatibility
  105. // with trident service ID's. This should be the service ID for DirectDraw
  106. // no matter what version.
  107. //
  108. DX_DECLARE_GUID(SID_SDirectDraw,
  109. 0x618f8ad4, 0x8b7a, 0x11d0, 0x8f, 0xcc, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);
  110. //
  111. // The service ID for Direct 3D Retain Mode is the same as IID_IDirect3DRM
  112. //
  113. DX_DECLARE_GUID(SID_SDirect3DRM,
  114. 0x2bc49361, 0x8327, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  115. //
  116. // The service ID for DirectDraw3 is the same as IID_IDirectDraw3
  117. //
  118. DX_DECLARE_GUID(SID_SDirectDraw3,
  119. 0x618f8ad4, 0x8b7a, 0x11d0, 0x8f, 0xcc, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);