1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
#ifndef NULLSOFT_WINAMP_HOOK_INTERFACE_HEADER
#define NULLSOFT_WINAMP_HOOK_INTERFACE_HEADER
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
// {EB225B60-14C1-424f-B8EA-A8EDE3AD82A9}
static const GUID IFC_WinampHook =
{ 0xeb225b60, 0x14c1, 0x424f, { 0xb8, 0xea, 0xa8, 0xed, 0xe3, 0xad, 0x82, 0xa9 } };
#include <bfc/dispatch.h>
class __declspec(novtable) ifc_winamphook: public Dispatchable
{
protected:
ifc_winamphook() {}
~ifc_winamphook() {}
public:
HRESULT IsQuitAllowed(void); // return S_FALSE to block
HRESULT ResetFont(void);
HRESULT SkinChanging(void);
HRESULT SkinChanged(const wchar_t *skinName);
HRESULT FileMetaChange(const wchar_t *fileName);
HRESULT SysColorChange(void);
HRESULT SkinColorChange(const wchar_t *colorTheme);
public:
DISPATCH_CODES
{
API_ISQUITALLOWED = 10,
API_RESETFONT = 20,
API_SKINCHANGING = 30,
API_SKINCHANGED = 40,
API_FILEMETACHANGE = 50,
API_SYSCOLORCHANGE = 60,
API_SKINCOLORCHANGE = 70
};
};
inline HRESULT ifc_winamphook::IsQuitAllowed(void)
{
return _call(API_ISQUITALLOWED, (HRESULT)E_NOTIMPL);
}
inline HRESULT ifc_winamphook::ResetFont(void)
{
return _call(API_RESETFONT, (HRESULT)E_NOTIMPL);
}
inline HRESULT ifc_winamphook::SkinChanging(void)
{
return _call(API_SKINCHANGING, (HRESULT)E_NOTIMPL);
}
inline HRESULT ifc_winamphook::SkinChanged(const wchar_t *skinName)
{
return _call(API_SKINCHANGED, (HRESULT)E_NOTIMPL, skinName);
}
inline HRESULT ifc_winamphook::FileMetaChange(const wchar_t *fileName)
{
return _call(API_FILEMETACHANGE, (HRESULT)E_NOTIMPL, fileName);
}
inline HRESULT ifc_winamphook::SysColorChange(void)
{
return _call(API_SYSCOLORCHANGE, (HRESULT)E_NOTIMPL);
}
inline HRESULT ifc_winamphook::SkinColorChange(const wchar_t *colorTheme)
{
return _call(API_SKINCOLORCHANGE, (HRESULT)E_NOTIMPL, colorTheme);
}
#endif // NULLSOFT_WINAMP_HOOK_INTERFACE_HEADER
|