diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/omBrowser/ifc_omservicehostext.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/omBrowser/ifc_omservicehostext.h')
-rw-r--r-- | Src/omBrowser/ifc_omservicehostext.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Src/omBrowser/ifc_omservicehostext.h b/Src/omBrowser/ifc_omservicehostext.h new file mode 100644 index 00000000..77181039 --- /dev/null +++ b/Src/omBrowser/ifc_omservicehostext.h @@ -0,0 +1,44 @@ +#ifndef NULLSOFT_WINAMP_OMSERVICE_HOST_EXTENSION_INTERFACE_HEADER +#define NULLSOFT_WINAMP_OMSERVICE_HOST_EXTENSION_INTERFACE_HEADER + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#include <bfc/dispatch.h> + +// {0DBA9261-79B5-4803-BB29-6246DE6C92C9} +static const GUID IFC_OmServiceHostExt = +{ 0xdba9261, 0x79b5, 0x4803, { 0xbb, 0x29, 0x62, 0x46, 0xde, 0x6c, 0x92, 0xc9 } }; + + +// supports AddRef(), Release(), QueryInterface() +class __declspec(novtable) ifc_omservicehostext : public Dispatchable +{ +protected: + ifc_omservicehostext() {} + ~ifc_omservicehostext() {} + +public: + HRESULT GetHost(ifc_omservicehost **ppHost); + HRESULT SetHost(ifc_omservicehost *host); + +public: + DISPATCH_CODES + { + API_GETHOST = 10, + API_SETHOST = 20, + }; +}; + +inline HRESULT ifc_omservicehostext::GetHost(ifc_omservicehost **ppHost) +{ + return _call(API_GETHOST, (HRESULT)E_NOTIMPL, ppHost); +} + +inline HRESULT ifc_omservicehostext::SetHost(ifc_omservicehost *host) +{ + return _call(API_SETHOST, (HRESULT)E_NOTIMPL, host); +} + +#endif //NULLSOFT_WINAMP_OMSERVICE_HOST_EXTENSION_INTERFACE_HEADER
\ No newline at end of file |