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.

156 lines
11 KiB

  1. // Copyright (C) Microsoft Corporation, 1998
  2. //
  3. // IDs for HTML+TIME
  4. //
  5. // Just follow the template when adding either DISPIDs or new interfaces.
  6. //
  7. #ifndef __TIMEDISPID_H__
  8. #define __TIMEDISPID_H__
  9. // Base offset:
  10. //
  11. // need to reposition our IDs low for Trident
  12. //
  13. #define DISPID_BASE 0x00000000
  14. // Interface offsets:
  15. #define TIMEELEMENT_OFFSET 0x0100
  16. #define TIMEBODYELEMENT_OFFSET 0x0200
  17. #define TIMEDAELEMENT_OFFSET 0x0300
  18. #define TIMEMEDIAELEMENT_OFFSET 0x0400
  19. #define TIMEFACTORY_OFFSET 0x0500
  20. #define TIMECOLLECTION_OFFSET 0x0600
  21. #define TIMECOLLECTION_RESERVED_OFFSET 0x0700
  22. #define TIMEMEDIAPLAYER_OFFSET 0x0800
  23. #define TIMEMEDIAPLAYEREVENTS_OFFSET 0x0900
  24. #define DISPID_TIME_MIN 0x0001
  25. #define DISPID_TIME_MAX 0x270F
  26. // Interface bases:
  27. #define DISPID_TIMEELEMENT_BASE (DISPID_BASE + TIMEELEMENT_OFFSET)
  28. #define DISPID_TIMEBODYELEMENT_BASE (DISPID_BASE + TIMEBODYELEMENT_OFFSET)
  29. #define DISPID_TIMEDAELEMENT_BASE (DISPID_BASE + TIMEDAELEMENT_OFFSET)
  30. #define DISPID_TIMEMEDIAELEMENT_BASE (DISPID_BASE + TIMEMEDIAELEMENT_OFFSET)
  31. #define DISPID_TIMEFACTORY_BASE (DISPID_BASE + TIMEFACTORY_OFFSET)
  32. #define DISPID_TIMECOLLECTION_BASE (DISPID_BASE + TIMECOLLECTION_OFFSET)
  33. #define DISPID_TIMECOLLECTION_RESERVED_BASE (DISPID_BASE + TIMECOLLECTION_RESERVED_OFFSET)
  34. #define DISPID_TIMEMEDIAPLAYER_BASE (DISPID_BASE + TIMEMEDIAPLAYER_OFFSET)
  35. #define DISPID_TIMEMEDIAPLAYEREVENTS_BASE (DISPID_BASE + TIMEMEDIAPLAYEREVENTS_OFFSET)
  36. // Collection Reserve (for expando's and ordinal's)
  37. #define DISPID_COLLECTION_RESERVED_MIN DISPID_TIMECOLLECTION_RESERVED_BASE
  38. #define DISPID_COLLECTION_RESERVED_MAX 0x0000007FF
  39. // ITIMEElement DISPIDs:
  40. #define DISPID_TIMEELEMENT_BEGIN (DISPID_TIMEELEMENT_BASE + 0x01)
  41. #define DISPID_TIMEELEMENT_BEGINWITH (DISPID_TIMEELEMENT_BASE + 0x02)
  42. #define DISPID_TIMEELEMENT_BEGINAFTER (DISPID_TIMEELEMENT_BASE + 0x03)
  43. #define DISPID_TIMEELEMENT_BEGINEVENT (DISPID_TIMEELEMENT_BASE + 0x04)
  44. #define DISPID_TIMEELEMENT_DUR (DISPID_TIMEELEMENT_BASE + 0x05)
  45. #define DISPID_TIMEELEMENT_END (DISPID_TIMEELEMENT_BASE + 0x06)
  46. #define DISPID_TIMEELEMENT_ENDWITH (DISPID_TIMEELEMENT_BASE + 0x07)
  47. #define DISPID_TIMEELEMENT_ENDEVENT (DISPID_TIMEELEMENT_BASE + 0x08)
  48. #define DISPID_TIMEELEMENT_ENDSYNC (DISPID_TIMEELEMENT_BASE + 0x09)
  49. #define DISPID_TIMEELEMENT_REPEAT (DISPID_TIMEELEMENT_BASE + 0x0a)
  50. #define DISPID_TIMEELEMENT_REPEATDUR (DISPID_TIMEELEMENT_BASE + 0x0b)
  51. #define DISPID_TIMEELEMENT_TIMEACTION (DISPID_TIMEELEMENT_BASE + 0x0c)
  52. #define DISPID_TIMEELEMENT_BEGINELEMENT (DISPID_TIMEELEMENT_BASE + 0x0d)
  53. #define DISPID_TIMEELEMENT_ENDELEMENT (DISPID_TIMEELEMENT_BASE + 0x0e)
  54. #define DISPID_TIMEELEMENT_PAUSE (DISPID_TIMEELEMENT_BASE + 0x0f)
  55. #define DISPID_TIMEELEMENT_RESUME (DISPID_TIMEELEMENT_BASE + 0x10)
  56. #define DISPID_TIMEELEMENT_CUE (DISPID_TIMEELEMENT_BASE + 0x11)
  57. #define DISPID_TIMEELEMENT_TIMELINE (DISPID_TIMEELEMENT_BASE + 0x12)
  58. #define DISPID_TIMEELEMENT_CURRTIME (DISPID_TIMEELEMENT_BASE + 0x13)
  59. #define DISPID_TIMEELEMENT_LOCALTIME (DISPID_TIMEELEMENT_BASE + 0x14)
  60. #define DISPID_TIMEELEMENT_CURRSTATE (DISPID_TIMEELEMENT_BASE + 0x15)
  61. #define DISPID_TIMEELEMENT_SYNCBEHAVIOR (DISPID_TIMEELEMENT_BASE + 0x16)
  62. #define DISPID_TIMEELEMENT_SYNCTOLERANCE (DISPID_TIMEELEMENT_BASE + 0x17)
  63. #define DISPID_TIMEELEMENT_PARENTTIMEELEMENT (DISPID_TIMEELEMENT_BASE + 0x19)
  64. #define DISPID_TIMEELEMENT_ALLTIMEELEMENTS (DISPID_TIMEELEMENT_BASE + 0x1a)
  65. #define DISPID_TIMEELEMENT_CHILDRENTIMEELEMENTS (DISPID_TIMEELEMENT_BASE + 0x1b)
  66. #define DISPID_TIMEELEMENT_ALLTIMEINTERFACES (DISPID_TIMEELEMENT_BASE + 0x1c)
  67. #define DISPID_TIMEELEMENT_CHILDRENTIMEINTERFACES (DISPID_TIMEELEMENT_BASE + 0x1d)
  68. #define DISPID_TIMEELEMENT_ACCELERATE (DISPID_TIMEELEMENT_BASE + 0x1e)
  69. #define DISPID_TIMEELEMENT_DECELERATE (DISPID_TIMEELEMENT_BASE + 0x1f)
  70. #define DISPID_TIMEELEMENT_AUTOREVERSE (DISPID_TIMEELEMENT_BASE + 0x20)
  71. #define DISPID_TIMEELEMENT_EVENTRESTART (DISPID_TIMEELEMENT_BASE + 0x21)
  72. #define DISPID_TIMEELEMENT_ENDHOLD (DISPID_TIMEELEMENT_BASE + 0x22)
  73. #define DISPID_TIMEELEMENT_TIMELINEBEHAVIOR (DISPID_TIMEELEMENT_BASE + 0x23)
  74. #define DISPID_TIMEELEMENT_PROGRESSBEHAVIOR (DISPID_TIMEELEMENT_BASE + 0x24)
  75. #define DISPID_TIMEELEMENT_ONOFFBEHAVIOR (DISPID_TIMEELEMENT_BASE + 0x25)
  76. // ITIMEBodyElement DISPIDs:
  77. #define DISPID_TIMEBODYELEMENT_TIMESTARTRULE (DISPID_TIMEBODYELEMENT_BASE + 0x01)
  78. #define DISPID_TIMEBODYELEMENT_ADDTIMEDAELEMENT (DISPID_TIMEBODYELEMENT_BASE + 0x02)
  79. #define DISPID_TIMEBODYELEMENT_REMOVETIMEDAELEMENT (DISPID_TIMEBODYELEMENT_BASE + 0x03)
  80. // ITIMEDAElement DISPIDs:
  81. #define DISPID_TIMEDAELEMENT_IMAGE (DISPID_TIMEDAELEMENT_BASE + 0x01)
  82. #define DISPID_TIMEDAELEMENT_SOUND (DISPID_TIMEDAELEMENT_BASE + 0x02)
  83. #define DISPID_TIMEDAELEMENT_RENDERMODE (DISPID_TIMEDAELEMENT_BASE + 0x03)
  84. #define DISPID_TIMEDAELEMENT_ADDDABEHAVIOR (DISPID_TIMEDAELEMENT_BASE + 0x04)
  85. #define DISPID_TIMEDAELEMENT_REMOVEDABEHAVIOR (DISPID_TIMEDAELEMENT_BASE + 0x05)
  86. #define DISPID_TIMEDAELEMENT_STATICS (DISPID_TIMEDAELEMENT_BASE + 0x06)
  87. #define DISPID_TIMEDAELEMENT_RENDEROBJECT (DISPID_TIMEDAELEMENT_BASE + 0x07)
  88. // ITIMEMediaElement DISPIDs:
  89. #define DISPID_TIMEMEDIAELEMENT_SRC (DISPID_TIMEMEDIAELEMENT_BASE + 0x01)
  90. #define DISPID_TIMEMEDIAELEMENT_IMG (DISPID_TIMEMEDIAELEMENT_BASE + 0x02)
  91. #define DISPID_TIMEMEDIAELEMENT_PLAYER (DISPID_TIMEMEDIAELEMENT_BASE + 0x03)
  92. #define DISPID_TIMEMEDIAELEMENT_SRCTYPE (DISPID_TIMEMEDIAELEMENT_BASE + 0x04)
  93. #define DISPID_TIMEMEDIAELEMENT_PLAYEROBJECT (DISPID_TIMEMEDIAELEMENT_BASE + 0x05)
  94. #define DISPID_TIMEMEDIAELEMENT_CLOCKSOURCE (DISPID_TIMEMEDIAELEMENT_BASE + 0x06)
  95. #define DISPID_TIMEMEDIAELEMENT_CLIPBEGIN (DISPID_TIMEMEDIAELEMENT_BASE + 0x07)
  96. #define DISPID_TIMEMEDIAELEMENT_CLIPEND (DISPID_TIMEMEDIAELEMENT_BASE + 0x08)
  97. // ITIMEFactory DISPIDs:
  98. #define DISPID_TIMEFACTORY_CREATETIMEELEMENT (DISPID_TIMEFACTORY_BASE + 0x01)
  99. #define DISPID_TIMEFACTORY_CREATETIMEELEMENTBODY (DISPID_TIMEFACTORY_BASE + 0x02)
  100. #define DISPID_TIMEFACTORY_CREATETIMEDAELEMENT (DISPID_TIMEFACTORY_BASE + 0x03)
  101. #define DISPID_TIMEFACTORY_CREATETIMEMEDIAELEMENT (DISPID_TIMEFACTORY_BASE + 0x04)
  102. //
  103. // ITIMEElementCollection
  104. //
  105. #define DISPID_TIMEELEMENTCOLLECTION_LENGTH (DISPID_TIMECOLLECTION_BASE + 0x01)
  106. #define DISPID_TIMEELEMENTCOLLECTION__NEWENUM (DISPID_NEWENUM)
  107. #define DISPID_TIMEELEMENTCOLLECTION_ITEM (DISPID_VALUE)
  108. #define DISPID_TIMEELEMENTCOLLECTION_TAGS (DISPID_TIMECOLLECTION_BASE + 0x02)
  109. //
  110. // ITIMEMediaPlayer
  111. //
  112. #define DISPID_TIMEMEDIAPLAYER_CLIPBEGIN (DISPID_TIMEMEDIAPLAYER_BASE + 0x01)
  113. #define DISPID_TIMEMEDIAPLAYER_CLIPEND (DISPID_TIMEMEDIAPLAYER_BASE + 0x02)
  114. #define DISPID_TIMEMEDIAPLAYER_BEGIN (DISPID_TIMEMEDIAPLAYER_BASE + 0x03)
  115. #define DISPID_TIMEMEDIAPLAYER_END (DISPID_TIMEMEDIAPLAYER_BASE + 0x04)
  116. #define DISPID_TIMEMEDIAPLAYER_RESUME (DISPID_TIMEMEDIAPLAYER_BASE + 0x05)
  117. #define DISPID_TIMEMEDIAPLAYER_PAUSE (DISPID_TIMEMEDIAPLAYER_BASE + 0x06)
  118. #define DISPID_TIMEMEDIAPLAYER_TICK (DISPID_TIMEMEDIAPLAYER_BASE + 0x07)
  119. #define DISPID_TIMEMEDIAPLAYER_CURRENTTIME (DISPID_TIMEMEDIAPLAYER_BASE + 0x08)
  120. #define DISPID_TIMEMEDIAPLAYER_SRC (DISPID_TIMEMEDIAPLAYER_BASE + 0x09)
  121. #define DISPID_TIMEMEDIAPLAYER_INIT (DISPID_TIMEMEDIAPLAYER_BASE + 0x0A)
  122. #define DISPID_TIMEMEDIAPLAYER_REPEAT (DISPID_TIMEMEDIAPLAYER_BASE + 0x0B)
  123. #define DISPID_TIMEMEDIAPLAYER_CUE (DISPID_TIMEMEDIAPLAYER_BASE + 0x0C)
  124. //
  125. // ITIMEMediaPlayer
  126. //
  127. #define DISPID_TIMEMEDIAPLAYEREVENTS_ONBEGIN (DISPID_TIMEMEDIAPLAYEREVENTS_BASE + 0x01)
  128. #define DISPID_TIMEMEDIAPLAYEREVENTS_ONEND (DISPID_TIMEMEDIAPLAYEREVENTS_BASE + 0x02)
  129. #define DISPID_TIMEMEDIAPLAYEREVENTS_ONRESUME (DISPID_TIMEMEDIAPLAYEREVENTS_BASE + 0x03)
  130. #define DISPID_TIMEMEDIAPLAYEREVENTS_ONPAUSE (DISPID_TIMEMEDIAPLAYEREVENTS_BASE + 0x04)
  131. #define DISPID_TIMEMEDIAPLAYEREVENTS_ONMEDIAREADY (DISPID_TIMEMEDIAPLAYEREVENTS_BASE + 0x05)
  132. #define DISPID_TIMEMEDIAPLAYEREVENTS_ONMEDIASLIP (DISPID_TIMEMEDIAPLAYEREVENTS_BASE + 0x06)
  133. #define DISPID_TIMEMEDIAPLAYEREVENTS_ONMEDIALOADFAILED (DISPID_TIMEMEDIAPLAYEREVENTS_BASE + 0x07)
  134. #define DISPID_TIMEMEDIAPLAYEREVENTS_READYSTATECHANGE (DISPID_READYSTATECHANGE)
  135. #endif //__TIMEDISPID_H__