Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.3 KiB

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORP., 1998
  4. *
  5. * TITLE: CallBack.h
  6. *
  7. * VERSION: 2.0
  8. *
  9. * AUTHOR: ReedB
  10. *
  11. * DATE: 4 Aug, 1998
  12. *
  13. * DESCRIPTION:
  14. * Declarations and definitions for the WIA device class driver callbacks.
  15. *
  16. *******************************************************************************/
  17. class CEventCallback : public IWiaEventCallback
  18. {
  19. public:
  20. // Constructor, initialization and destructor methods.
  21. CEventCallback();
  22. HRESULT _stdcall Initialize();
  23. ~CEventCallback();
  24. // IUnknown members that delegate to m_pUnkRef.
  25. HRESULT _stdcall QueryInterface(const IID&,void**);
  26. ULONG _stdcall AddRef();
  27. ULONG _stdcall Release();
  28. HRESULT _stdcall ImageEventCallback(
  29. const GUID *pEventGUID,
  30. BSTR bstrEventDescription,
  31. BSTR bstrDeviceID,
  32. BSTR bstrDeviceDescription,
  33. DWORD dwDeviceType,
  34. BSTR bstrFullItemName,
  35. ULONG *plEventType,
  36. ULONG ulReserved);
  37. private:
  38. ULONG m_cRef; // Object reference count.
  39. };
  40. // Public prototypes
  41. HRESULT RegisterForWIAEvents(IWiaEventCallback** ppIWiaEventCallback);