-
Notifications
You must be signed in to change notification settings - Fork 4
/
DiscFormatDataEvent.h
60 lines (47 loc) · 1.52 KB
/
DiscFormatDataEvent.h
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
///////////////////////////////////////////////////////////////////////
// DiscFormatDataEvent.h
//
// Wrapper for DDiscFormat2DataEvents Interface Events
//
// Written by Eric Haddan
//
#pragma once
#include "stdafx.h"
#include "DiscFormatData.h"
class CDiscFormatData;
// CDiscFormatDataEvent command target
class CDiscFormatDataEvent : public CCmdTarget
{
DECLARE_DYNAMIC(CDiscFormatDataEvent)
private:
LPTYPEINFO m_ptinfo; // ITest type information
DWORD m_dwCookie;
LPUNKNOWN m_pUnkSink;
LPUNKNOWN m_pUnkSrc;
// HWND m_hNotifyWnd;
public:
CDiscFormatDataEvent();
virtual ~CDiscFormatDataEvent();
static CDiscFormatDataEvent* CreateEventSink();
bool ConnectDiscFormatData(CDiscFormatData*);
// inline void SetHwnd(HWND hWnd){m_hNotifyWnd = hWnd;}
DECLARE_INTERFACE_MAP()
BEGIN_INTERFACE_PART(FormatDataEvents, DDiscFormat2DataEvents)
//
// IDispatch Methods
//
STDMETHOD(GetTypeInfoCount)(UINT FAR* pctinfo);
STDMETHOD(GetTypeInfo)(UINT itinfo, LCID lcid, ITypeInfo FAR* FAR* pptinfo);
STDMETHOD(GetIDsOfNames)(REFIID riid, OLECHAR FAR* FAR* rgszNames,
UINT cNames, LCID lcid, DISPID FAR* rgdispid);
STDMETHOD(Invoke)(DISPID dispidMember, REFIID riid, LCID lcid,
WORD wFlags, DISPPARAMS FAR* pdispparams, VARIANT FAR* pvarResult,
EXCEPINFO FAR* pexcepinfo, UINT FAR* puArgErr);
//
// DDiscFormat2DataEvents Methods
//
STDMETHOD_(HRESULT, Update)(LPDISPATCH, LPDISPATCH);
END_INTERFACE_PART(FormatDataEvents)
protected:
DECLARE_MESSAGE_MAP()
};