ifc_omservicedetails.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #ifndef NULLSOFT_WINAMP_OMSERVICE_DETAILS_INTERFACE_HEADER
  2. #define NULLSOFT_WINAMP_OMSERVICE_DETAILS_INTERFACE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. // {74C85447-B11A-47ea-95CB-B2ED54E8029E}
  7. static const GUID IFC_OmServiceDetails =
  8. { 0x74c85447, 0xb11a, 0x47ea, { 0x95, 0xcb, 0xb2, 0xed, 0x54, 0xe8, 0x2, 0x9e } };
  9. #include <bfc/dispatch.h>
  10. class __declspec(novtable) ifc_omservicedetails : public Dispatchable
  11. {
  12. protected:
  13. ifc_omservicedetails() {}
  14. ~ifc_omservicedetails() {}
  15. public:
  16. HRESULT GetDescription(wchar_t *pszBuffer, unsigned int cchBufferMax);
  17. HRESULT GetAuthorFirst(wchar_t *pszBuffer, unsigned int cchBufferMax);
  18. HRESULT GetAuthorLast(wchar_t *pszBuffer, unsigned int cchBufferMax);
  19. HRESULT GetUpdated(wchar_t *pszBuffer, unsigned int cchBufferMax);
  20. HRESULT GetPublished(wchar_t *pszBuffer, unsigned int cchBufferMax);
  21. HRESULT GetThumbnail(wchar_t *pszBuffer, unsigned int cchBufferMax);
  22. HRESULT GetScreenshot(wchar_t *pszBuffer, unsigned int cchBufferMax);
  23. public:
  24. DISPATCH_CODES
  25. {
  26. API_GETDESCRIPTION = 10,
  27. API_GETAUTHORFIRST = 20,
  28. API_GETAUTHORLAST = 30,
  29. API_GETUPDATED = 40,
  30. API_GETPUBLISHED = 50,
  31. API_GETTHUMBNAIL = 60,
  32. API_GETSCREENSHOT = 70,
  33. };
  34. };
  35. inline HRESULT ifc_omservicedetails::GetDescription(wchar_t *pszBuffer, unsigned int cchBufferMax)
  36. {
  37. return _call(API_GETDESCRIPTION, E_NOTIMPL, pszBuffer, cchBufferMax);
  38. }
  39. inline HRESULT ifc_omservicedetails::GetAuthorFirst(wchar_t *pszBuffer, unsigned int cchBufferMax)
  40. {
  41. return _call(API_GETAUTHORFIRST, E_NOTIMPL, pszBuffer, cchBufferMax);
  42. }
  43. inline HRESULT ifc_omservicedetails::GetAuthorLast(wchar_t *pszBuffer, unsigned int cchBufferMax)
  44. {
  45. return _call(API_GETAUTHORLAST, E_NOTIMPL, pszBuffer, cchBufferMax);
  46. }
  47. inline HRESULT ifc_omservicedetails::GetUpdated(wchar_t *pszBuffer, unsigned int cchBufferMax)
  48. {
  49. return _call(API_GETUPDATED, E_NOTIMPL, pszBuffer, cchBufferMax);
  50. }
  51. inline HRESULT ifc_omservicedetails::GetPublished(wchar_t *pszBuffer, unsigned int cchBufferMax)
  52. {
  53. return _call(API_GETPUBLISHED, E_NOTIMPL, pszBuffer, cchBufferMax);
  54. }
  55. inline HRESULT ifc_omservicedetails::GetThumbnail(wchar_t *pszBuffer, unsigned int cchBufferMax)
  56. {
  57. return _call(API_GETTHUMBNAIL, E_NOTIMPL, pszBuffer, cchBufferMax);
  58. }
  59. inline HRESULT ifc_omservicedetails::GetScreenshot(wchar_t *pszBuffer, unsigned int cchBufferMax)
  60. {
  61. return _call(API_GETSCREENSHOT, E_NOTIMPL, pszBuffer, cchBufferMax);
  62. }
  63. #endif //NULLSOFT_WINAMP_OMSERVICE_DETAILS_INTERFACE_HEADER