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_omstatusbarconfig.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_omstatusbarconfig.h')
-rw-r--r-- | Src/omBrowser/ifc_omstatusbarconfig.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Src/omBrowser/ifc_omstatusbarconfig.h b/Src/omBrowser/ifc_omstatusbarconfig.h new file mode 100644 index 00000000..cf9e8473 --- /dev/null +++ b/Src/omBrowser/ifc_omstatusbarconfig.h @@ -0,0 +1,46 @@ +#ifndef NULLSOFT_WINAMP_OMBROWSER_STATUSBAR_CONFIG_INTERFACE_HEADER +#define NULLSOFT_WINAMP_OMBROWSER_STATUSBAR_CONFIG_INTERFACE_HEADER + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#define CFGID_STATUSBAR_ENABLED 0 // param = (ULONG_PTR)(BOOL)fEnabled + +// {98ABEE7F-06F4-4652-886D-58E1769E2592} +static const GUID IFC_OmStatusbarConfig = +{ 0x98abee7f, 0x6f4, 0x4652, { 0x88, 0x6d, 0x58, 0xe1, 0x76, 0x9e, 0x25, 0x92 } }; + +#include <bfc/dispatch.h> + +class __declspec(novtable) ifc_omstatusbarconfig : public Dispatchable +{ +protected: + ifc_omstatusbarconfig() {} + ~ifc_omstatusbarconfig() {} + +public: + HRESULT GetEnabled(void); + HRESULT EnableStatusbar(BOOL fEnable); + +public: + DISPATCH_CODES + { + API_GETENABLED = 10, + API_ENABLESTATUSBAR = 20, + }; +}; + +inline HRESULT ifc_omstatusbarconfig::GetEnabled(void) +{ + return _call(API_GETENABLED, (HRESULT)E_NOTIMPL); +} + + +inline HRESULT ifc_omstatusbarconfig::EnableStatusbar(BOOL fEnable) +{ + return _call(API_ENABLESTATUSBAR, (HRESULT)E_NOTIMPL, fEnable); +} + + +#endif // NULLSOFT_WINAMP_OMBROWSER_STATUSBAR_CONFIG_INTERFACE_HEADER
\ No newline at end of file |