diff options
author | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
---|---|---|
committer | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
commit | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/omBrowser/ifc_omxmlserviceenum.h | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/omBrowser/ifc_omxmlserviceenum.h')
-rw-r--r-- | Src/omBrowser/ifc_omxmlserviceenum.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Src/omBrowser/ifc_omxmlserviceenum.h b/Src/omBrowser/ifc_omxmlserviceenum.h new file mode 100644 index 00000000..b54247b5 --- /dev/null +++ b/Src/omBrowser/ifc_omxmlserviceenum.h @@ -0,0 +1,42 @@ +#ifndef NULLSOFT_WINAMP_OMSERVICE_XML_ENUMERATOR_INTERFACE_HEADER +#define NULLSOFT_WINAMP_OMSERVICE_XML_ENUMERATOR_INTERFACE_HEADER + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +// {E7105EE1-161B-4580-A8C0-6673FB59AB47} +static const GUID IFC_OmXmlServiceEnum = +{ 0xe7105ee1, 0x161b, 0x4580, { 0xa8, 0xc0, 0x66, 0x73, 0xfb, 0x59, 0xab, 0x47 } }; + +#include <bfc/dispatch.h> + +class __declspec(novtable) ifc_omxmlserviceenum : public Dispatchable +{ +protected: + ifc_omxmlserviceenum() {} + ~ifc_omxmlserviceenum() {} + +public: + HRESULT GetStatusCode(unsigned int *code); + HRESULT GetStatusText(wchar_t *buffer, unsigned int bufferMax); + +public: + DISPATCH_CODES + { + API_GETSTATUSCODE = 10, + API_GETSTATUSTEXT = 20, + }; +}; + +inline HRESULT ifc_omxmlserviceenum::GetStatusCode(unsigned int *code) +{ + return _call(API_GETSTATUSCODE, (HRESULT)E_NOTIMPL, code); +} + +inline HRESULT ifc_omxmlserviceenum::GetStatusText(wchar_t *buffer, unsigned int bufferMax) +{ + return _call(API_GETSTATUSTEXT, (HRESULT)E_NOTIMPL, buffer, bufferMax); +} + +#endif //NULLSOFT_WINAMP_OMSERVICE_XML_ENUMERATOR_INTERFACE_HEADER
\ No newline at end of file |