WMSPlaylistParser.idl 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. //*****************************************************************************
  2. //
  3. // Microsoft Windows Media
  4. // Copyright (C) Microsoft Corporation. All rights reserved.
  5. //
  6. // FileName: WMSPlaylistParser.idl
  7. //
  8. // Abstract:
  9. //
  10. //*****************************************************************************
  11. cpp_quote("//*****************************************************************************")
  12. cpp_quote("//")
  13. cpp_quote("// Microsoft Windows Media")
  14. cpp_quote("// Copyright (C) Microsoft Corporation. All rights reserved.")
  15. cpp_quote("//")
  16. cpp_quote("// Automatically generated by Midl from WMSPlaylistParser.idl")
  17. cpp_quote("//")
  18. cpp_quote("// DO NOT EDIT THIS FILE.")
  19. cpp_quote("//")
  20. cpp_quote("//*****************************************************************************")
  21. import "oaidl.idl";
  22. import "xmldom.idl";
  23. import "nsscore.idl";
  24. import "wmsbuffer.idl";
  25. import "wmscontext.idl";
  26. import "dataContainer.idl";
  27. interface IWMSPlaylistParserCallback;
  28. interface IWMSPlaylistParserPluginCallback;
  29. cpp_quote( "EXTERN_GUID( IID_IWMSPlaylistParser, 0xee1f2ec, 0x48ef, 0x11d2, 0x9e, 0xff, 0x0, 0x60, 0x97, 0xd2, 0xd7, 0xcf );" )
  30. cpp_quote( "EXTERN_GUID( IID_IWMSPlaylistParserCallback, 0xee1f2ed, 0x48ef, 0x11d2, 0x9e, 0xff, 0x0, 0x60, 0x97, 0xd2, 0xd7, 0xcf );" )
  31. cpp_quote( "EXTERN_GUID( IID_IWMSPlaylistParserPlugin, 0xfa8764c1, 0x90a2, 0x11d2, 0x9f, 0x22, 0x0, 0x60, 0x97, 0xd2, 0xd7, 0xcf );" )
  32. cpp_quote( "EXTERN_GUID( IID_IWMSPlaylistParserPluginCallback, 0xfa8764c2, 0x90a2, 0x11d2, 0x9f, 0x22, 0x0, 0x60, 0x97, 0xd2, 0xd7, 0xcf );" )
  33. //////////////////////////////////////////////////////////////////////////////
  34. //
  35. // PLAYLIST PARSERS
  36. //
  37. //////////////////////////////////////////////////////////////////////////////
  38. [
  39. object,
  40. pointer_default(unique),
  41. uuid(0EE1F2EC-48EF-11d2-9EFF-006097D2D7CF),
  42. version(9.0),
  43. helpstring("Provides methods for parsing a playlist file.")
  44. ]
  45. interface IWMSPlaylistParser : IUnknown
  46. {
  47. [helpstring("Interprets the playlist file contained in a buffer and transforms it into an IXMLDOMDocument object.")] HRESULT
  48. ReadPlaylist(
  49. [in] INSSBuffer *pBuffer,
  50. [in] IXMLDOMDocument *pPlaylist,
  51. [in] IWMSPlaylistParserCallback *pCallback,
  52. [in] QWORD qwContext
  53. );
  54. [helpstring("Transforms an IXMLDOMDocument object to a specific playlist syntax and saves it to a buffer.")] HRESULT
  55. WritePlaylist(
  56. [in] IXMLDOMDocument *pPlaylist,
  57. [in] IWMSPlaylistParserCallback *pCallback,
  58. [in] QWORD qwContext
  59. );
  60. [helpstring("Creates a playlist from files in a directory.")] HRESULT
  61. ReadPlaylistFromDirectory(
  62. [in] IWMSDirectory *pDirectory,
  63. [in] LPWSTR pszwFilePattern,
  64. [in] IXMLDOMDocument *pPlaylist,
  65. [in] IWMSPlaylistParserCallback *pCallback,
  66. [in] QWORD qwContext
  67. );
  68. }
  69. //////////////////////////////////////////////////////////////////////////////
  70. //
  71. //////////////////////////////////////////////////////////////////////////////
  72. [
  73. object,
  74. pointer_default(unique),
  75. uuid(0EE1F2ED-48EF-11d2-9EFF-006097D2D7CF),
  76. version(9.0),
  77. helpstring("Contains methods that enable a playlist parser object to respond to calls that the server makes through the IWMSPlaylistParser interface.")
  78. ]
  79. interface IWMSPlaylistParserCallback : IUnknown
  80. {
  81. [helpstring("Returns the result of either the IWMSPlaylistParser::ReadPlaylist or IWMSPlaylistParser::ReadPlaylistFromDirectory method call.")] HRESULT
  82. OnReadPlaylist(
  83. [in] HRESULT hr,
  84. [in] QWORD qwContext
  85. );
  86. [helpstring("Returns the result of the IWMSPlaylistParser::WritePlaylist method call.")] HRESULT
  87. OnWritePlaylist(
  88. [in] HRESULT hr,
  89. [in] INSSBuffer *pBuffer,
  90. [in] QWORD qwContext
  91. );
  92. }
  93. //////////////////////////////////////////////////////////////////////////////
  94. //
  95. // PLAYLIST PARSER PLUGIN
  96. //
  97. //////////////////////////////////////////////////////////////////////////////
  98. //////////////////////////////////////////////////////////////////////////////
  99. [
  100. object,
  101. pointer_default(unique),
  102. uuid(FA8764C1-90A2-11d2-9F22-006097D2D7CF),
  103. version(9.0),
  104. helpstring("Provides a method for creating playlist parser objects."),
  105. ]
  106. interface IWMSPlaylistParserPlugin : IUnknown
  107. {
  108. [helpstring("Creates a playlist parser object.")] HRESULT
  109. CreatePlaylistParser(
  110. [in] IWMSCommandContext *pCommandContext,
  111. [in] IWMSContext *pUser,
  112. [in] IWMSContext *pPresentation,
  113. [in] DWORD dwFlags, // Not used
  114. [in] IWMSClassObject *pFactory,
  115. [in] IWMSBufferAllocator *pBufferAllocator,
  116. [in] IWMSPlaylistParserPluginCallback *pCallback,
  117. [in] QWORD qwContext
  118. );
  119. }
  120. //////////////////////////////////////////////////////////////////////////////
  121. [
  122. object,
  123. pointer_default(unique),
  124. uuid(FA8764C2-90A2-11d2-9F22-006097D2D7CF),
  125. version(9.0),
  126. helpstring("Contains a method that enables a playlist plug-in to respond to calls that the server makes through the IWMSPlaylistParserPlugin interface."),
  127. ]
  128. interface IWMSPlaylistParserPluginCallback : IUnknown
  129. {
  130. [helpstring("Returns the results of the IWMSPlaylistParserPlugin::CreatePlaylistParser method call.")] HRESULT
  131. OnCreatePlaylistParser(
  132. [in] HRESULT hr,
  133. [in] IWMSPlaylistParser *pParser,
  134. [in] QWORD qwContext
  135. );
  136. }