wmpmedia.cpp
上传用户:dreamzjm
上传日期:2014-06-08
资源大小:388k
文件大小:4k
源码类别:

多媒体编程

开发平台:

Visual C++

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  3. //  Microsoft Visual C++, your modifications will be overwritten.
  4. #include "stdafx.h"
  5. #include "wmpmedia.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CWMPMedia properties
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CWMPMedia operations
  10. BOOL CWMPMedia::GetIsIdentical(LPDISPATCH pIWMPMedia)
  11. {
  12. BOOL result;
  13. static BYTE parms[] =
  14. VTS_DISPATCH;
  15. InvokeHelper(0x2fb, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, parms,
  16. pIWMPMedia);
  17. return result;
  18. }
  19. CString CWMPMedia::GetSourceURL()
  20. {
  21. CString result;
  22. InvokeHelper(0x2ef, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  23. return result;
  24. }
  25. CString CWMPMedia::GetName()
  26. {
  27. CString result;
  28. InvokeHelper(0x2fc, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  29. return result;
  30. }
  31. void CWMPMedia::SetName(LPCTSTR lpszNewValue)
  32. {
  33. static BYTE parms[] =
  34. VTS_BSTR;
  35. InvokeHelper(0x2fc, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  36.  lpszNewValue);
  37. }
  38. long CWMPMedia::GetImageSourceWidth()
  39. {
  40. long result;
  41. InvokeHelper(0x2f0, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  42. return result;
  43. }
  44. long CWMPMedia::GetImageSourceHeight()
  45. {
  46. long result;
  47. InvokeHelper(0x2f1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  48. return result;
  49. }
  50. long CWMPMedia::GetMarkerCount()
  51. {
  52. long result;
  53. InvokeHelper(0x2f2, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  54. return result;
  55. }
  56. double CWMPMedia::getMarkerTime(long MarkerNum)
  57. {
  58. double result;
  59. static BYTE parms[] =
  60. VTS_I4;
  61. InvokeHelper(0x2f3, DISPATCH_METHOD, VT_R8, (void*)&result, parms,
  62. MarkerNum);
  63. return result;
  64. }
  65. CString CWMPMedia::getMarkerName(long MarkerNum)
  66. {
  67. CString result;
  68. static BYTE parms[] =
  69. VTS_I4;
  70. InvokeHelper(0x2f4, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
  71. MarkerNum);
  72. return result;
  73. }
  74. double CWMPMedia::GetDuration()
  75. {
  76. double result;
  77. InvokeHelper(0x2f5, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  78. return result;
  79. }
  80. CString CWMPMedia::GetDurationString()
  81. {
  82. CString result;
  83. InvokeHelper(0x2f6, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  84. return result;
  85. }
  86. long CWMPMedia::GetAttributeCount()
  87. {
  88. long result;
  89. InvokeHelper(0x2f7, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  90. return result;
  91. }
  92. CString CWMPMedia::getAttributeName(long lIndex)
  93. {
  94. CString result;
  95. static BYTE parms[] =
  96. VTS_I4;
  97. InvokeHelper(0x2f8, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
  98. lIndex);
  99. return result;
  100. }
  101. CString CWMPMedia::getItemInfo(LPCTSTR bstrItemName)
  102. {
  103. CString result;
  104. static BYTE parms[] =
  105. VTS_BSTR;
  106. InvokeHelper(0x2f9, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
  107. bstrItemName);
  108. return result;
  109. }
  110. void CWMPMedia::setItemInfo(LPCTSTR bstrItemName, LPCTSTR bstrVal)
  111. {
  112. static BYTE parms[] =
  113. VTS_BSTR VTS_BSTR;
  114. InvokeHelper(0x2fa, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  115.  bstrItemName, bstrVal);
  116. }
  117. CString CWMPMedia::getItemInfoByAtom(long lAtom)
  118. {
  119. CString result;
  120. static BYTE parms[] =
  121. VTS_I4;
  122. InvokeHelper(0x2fd, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
  123. lAtom);
  124. return result;
  125. }
  126. BOOL CWMPMedia::isMemberOf(LPDISPATCH pPlaylist)
  127. {
  128. BOOL result;
  129. static BYTE parms[] =
  130. VTS_DISPATCH;
  131. InvokeHelper(0x2fe, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  132. pPlaylist);
  133. return result;
  134. }
  135. BOOL CWMPMedia::isReadOnlyItem(LPCTSTR bstrItemName)
  136. {
  137. BOOL result;
  138. static BYTE parms[] =
  139. VTS_BSTR;
  140. InvokeHelper(0x2ff, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  141. bstrItemName);
  142. return result;
  143. }