1
0

ifc_omxmlserviceenum.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef NULLSOFT_WINAMP_OMSERVICE_XML_ENUMERATOR_INTERFACE_HEADER
  2. #define NULLSOFT_WINAMP_OMSERVICE_XML_ENUMERATOR_INTERFACE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. // {E7105EE1-161B-4580-A8C0-6673FB59AB47}
  7. static const GUID IFC_OmXmlServiceEnum =
  8. { 0xe7105ee1, 0x161b, 0x4580, { 0xa8, 0xc0, 0x66, 0x73, 0xfb, 0x59, 0xab, 0x47 } };
  9. #include <bfc/dispatch.h>
  10. class __declspec(novtable) ifc_omxmlserviceenum : public Dispatchable
  11. {
  12. protected:
  13. ifc_omxmlserviceenum() {}
  14. ~ifc_omxmlserviceenum() {}
  15. public:
  16. HRESULT GetStatusCode(unsigned int *code);
  17. HRESULT GetStatusText(wchar_t *buffer, unsigned int bufferMax);
  18. public:
  19. DISPATCH_CODES
  20. {
  21. API_GETSTATUSCODE = 10,
  22. API_GETSTATUSTEXT = 20,
  23. };
  24. };
  25. inline HRESULT ifc_omxmlserviceenum::GetStatusCode(unsigned int *code)
  26. {
  27. return _call(API_GETSTATUSCODE, (HRESULT)E_NOTIMPL, code);
  28. }
  29. inline HRESULT ifc_omxmlserviceenum::GetStatusText(wchar_t *buffer, unsigned int bufferMax)
  30. {
  31. return _call(API_GETSTATUSTEXT, (HRESULT)E_NOTIMPL, buffer, bufferMax);
  32. }
  33. #endif //NULLSOFT_WINAMP_OMSERVICE_XML_ENUMERATOR_INTERFACE_HEADER