windows-nt/Source/XPSP1/NT/printscan/wia/test/wiavideotest/wiaevent.h

49 lines
1.4 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/*****************************************************************************
*
* (C) COPYRIGHT MICROSOFT CORPORATION, 2000
*
* TITLE: WiaEvent.h
*
* VERSION: 1.0
*
* DATE: 2000/11/14
*
* DESCRIPTION: Implements callback for receiving WIA events.
*
*****************************************************************************/
#ifndef _WIAEVENT_H_
#define _WIAEVENT_H_
class CWiaEvent : public IWiaEventCallback
{
public:
CWiaEvent();
~CWiaEvent();
// IUnknown
STDMETHODIMP QueryInterface( REFIID riid, LPVOID *ppvObject );
STDMETHODIMP_(ULONG) AddRef(void);
STDMETHODIMP_(ULONG) Release(void);
//IWiaEventCallback
STDMETHODIMP ImageEventCallback(const GUID *pEventGUID,
BSTR bstrEventDescription,
BSTR bstrDeviceID,
BSTR bstrDeviceDescription,
DWORD dwDeviceType,
BSTR bstrFullItemName,
ULONG *pulEventType,
ULONG ulReserved);
static HRESULT RegisterForWiaEvent(LPCWSTR pwszDeviceId,
const GUID &guidEvent,
IUnknown **ppUnknown);
private:
LONG m_cRef;
};
#endif //_WIAEVENT_H_