home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / mac / SiteBldr / AMOVIE / SDK / _SETUP / COMMON.Z / evcode.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-15  |  4.7 KB  |  119 lines

  1. //==========================================================================;
  2. //
  3. //  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. //  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. //  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. //  PURPOSE.
  7. //
  8. //  Copyright (c) 1992 - 1996  Microsoft Corporation.  All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------;
  11.  
  12. //
  13. // list of standard Quartz event codes and the expected params
  14. //
  15.  
  16. // Event codes are broken into two groups
  17. //   -- system event codes
  18. //   -- extension event codes
  19. // All system event codes are below EC_USER
  20.  
  21. #define EC_SYSTEMBASE                       0x00
  22. #define EC_USER                             0x8000
  23.  
  24.  
  25. // system-defined event codes
  26.  
  27. // Asynchronous Operation complete
  28. // lParam1 is HRESULT, lParam2 is 0
  29. #define EC_COMPLETE                         0x01
  30.  
  31. // User abort of async operation
  32. // params 0
  33. #define EC_USERABORT                        0x02
  34.  
  35. // Operation aborted because of error
  36. // lParam1 is HRESULT, lParam2 is 0
  37. #define EC_ERRORABORT                       0x03
  38.  
  39. // The requested reference time occurred
  40. // lParam1 is low dword of ref time, lParam2 is high dword of reftime
  41. #define EC_TIME                             0x04
  42.  
  43. // A repaint is required - lParam1 contains the (IPin *) that needs the data
  44. // to be sent again. If the output pin which it is attached to supports the
  45. // IMediaEventSink interface then it will be called with the EC_REPAINT first
  46. // If that fails then normal repaint processing is done by the filtergraph
  47. #define EC_REPAINT                          0x05
  48.  
  49. // Stream error notifications
  50. // lParam 1 is major code, lParam2 is minor code
  51. // Pity - it would have been nice to have a time or position!
  52. #define EC_STREAM_ERROR_STOPPED             0x06
  53. #define EC_STREAM_ERROR_STILLPLAYING        0x07
  54.  
  55. // a playback error has occurred, but the graph is still playing
  56. #define EC_ERROR_STILLPLAYING               0x08
  57.  
  58. // notify application that the video palette has changed
  59. #define EC_PALETTE_CHANGED                  0x09
  60.  
  61. // notify application that the native video size has changed
  62. // LOWORD of lParam 1 is the width, HIWORD is the new height
  63. #define EC_VIDEO_SIZE_CHANGED               0x0A
  64.  
  65. // notify application that degradation has ocurred
  66. // lParam1   0
  67. // lParam2   0
  68. #define EC_QUALITY_CHANGE                   0x0B
  69.  
  70. // notify plug-in distributors that shutdown of filgraph is starting
  71. #define EC_SHUTTING_DOWN                    0x0C
  72.  
  73. // notify application that the clock has changed
  74. #define EC_CLOCK_CHANGED                    0x0D
  75.  
  76. // lParam1 == 1   --> starting to open file or buffer data
  77. // lParam1 == 0   --> not opening or buffering any more
  78. #define EC_OPENING_FILE                     0x10
  79. #define EC_BUFFERING_DATA                   0x11
  80.  
  81. // sent by full renderers when switched away from
  82. #define EC_FULLSCREEN_LOST                  0x12
  83.  
  84. // sent by video renderers when they lose or gain activation
  85. // lParam is set to 1 if gained or 0 if lost
  86. // lParam2 is the IFilter* for the filter that is sending the message
  87. // Used for sound follows focus and fullscreen switching
  88. #define EC_ACTIVATE                         0x13
  89.  
  90. // sent by renderers when they regain a resource (eg waveout). Causes
  91. // a restart by Pause/put_Current/Run (if running)
  92. // a seek to current position
  93. #define EC_NEED_RESTART                     0x14
  94.  
  95. // sent by video renderers when the window has been destroyed. Handled
  96. // by the filtergraph/distributor telling the resource manager.
  97. // lParam1 is the IFilter* of the filter whose window is being destroyed
  98. #define EC_WINDOW_DESTROYED                 0x15
  99.  
  100. // sent by renderers when they detect a display change. the filtergraph
  101. // will arrange for the graph to be stopped and the pin send in lParam1
  102. // to be reconnected. by being reconnected it allows a renderer to reset
  103. // and connect with a more appropriate format for the new display mode
  104. // lParam1 contains an (IPin *) that should be reconnected by the graph
  105. #define EC_DISPLAY_CHANGED                  0x16
  106.  
  107. // sent by a filter when it detects starvation. Default handling (only when
  108. // running) is for the graph to be paused until all filters enter the
  109. // paused state and then run. Normally this would be sent by a parser or source
  110. // filter when too little data is arriving.
  111. // parameters unused
  112. #define EC_STARVATION                0x17
  113.  
  114. // Sent by a filter to pass a text string to the application. lParam1 is a
  115. // BSTR (lParam2 is unused). You must free the BSTR by calling
  116. // IMediaEvent::FreeEventParams.
  117. #define EC_OLE_EVENT                0x18
  118.  
  119.