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
|
#ifndef NULLSOFT_WINAMP_OMSERVICE_EVENTMANAGER_INTERFACE_HEADER
#define NULLSOFT_WINAMP_OMSERVICE_EVENTMANAGER_INTERFACE_HEADER
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
#include <bfc/dispatch.h>
// {2ED54062-1442-4dfb-B0AE-C43846BE4FCE}
static const GUID IFC_OmServiceEventMngr =
{ 0x2ed54062, 0x1442, 0x4dfb, { 0xb0, 0xae, 0xc4, 0x38, 0x46, 0xbe, 0x4f, 0xce } };
class ifc_omservice;
class ifc_omserviceevent;
class __declspec(novtable) ifc_omserviceeventmngr : public Dispatchable
{
protected:
ifc_omserviceeventmngr() {}
~ifc_omserviceeventmngr() {}
public:
HRESULT RegisterHandler(ifc_omserviceevent *handler);
HRESULT UnregisterHandler(ifc_omserviceevent *handler);
HRESULT Signal_ServiceChange(unsigned int modifiedFlags);
HRESULT Signal_CommandStateChange(const GUID *commandGroup, unsigned int commandId);
public:
DISPATCH_CODES
{
API_REGISTERHANDLER = 10,
API_UNREGISTERHANDLER = 20,
API_SIGNAL_SERVICECHANGE = 30,
API_SIGNAL_COMMANDSTATECHANGE = 40,
};
};
inline HRESULT ifc_omserviceeventmngr::RegisterHandler(ifc_omserviceevent *handler)
{
return _call(API_REGISTERHANDLER, (HRESULT)E_NOTIMPL, handler);
}
inline HRESULT ifc_omserviceeventmngr::UnregisterHandler(ifc_omserviceevent *handler)
{
return _call(API_UNREGISTERHANDLER, (HRESULT)E_NOTIMPL, handler);
}
inline HRESULT ifc_omserviceeventmngr::Signal_ServiceChange(unsigned int modifiedFlags)
{
return _call(API_SIGNAL_SERVICECHANGE, (HRESULT)E_NOTIMPL, modifiedFlags);
}
inline HRESULT ifc_omserviceeventmngr::Signal_CommandStateChange( const GUID *commandGroup, unsigned int commandId)
{
return _call(API_SIGNAL_COMMANDSTATECHANGE, (HRESULT)E_NOTIMPL, commandGroup, commandId);
}
#endif //NULLSOFT_WINAMP_OMSERVICE_EVENTMANAGER_INTERFACE_HEADER
|