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.

53 lines
1.1 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1995 - 1995.
  5. //
  6. // File: copyhook.hxx
  7. //
  8. // Contents: CShareCopyHook definition
  9. //
  10. // History: 21-Apr-95 BruceFo Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #ifndef __COPYHOOK_HXX__
  14. #define __COPYHOOK_HXX__
  15. class CShareCopyHook : public ICopyHook
  16. {
  17. DECLARE_SIG;
  18. public:
  19. CShareCopyHook();
  20. ~CShareCopyHook();
  21. //
  22. // IUnknown methods
  23. //
  24. STDMETHOD(QueryInterface)(REFIID riid, LPVOID* ppvObj);
  25. STDMETHOD_(ULONG,AddRef)();
  26. STDMETHOD_(ULONG,Release)();
  27. //
  28. // ICopyHook methods
  29. //
  30. STDMETHOD_(UINT,CopyCallback)(
  31. HWND hwnd,
  32. UINT wFunc,
  33. UINT wFlags,
  34. LPCWSTR pszSrcFile,
  35. DWORD dwSrcAttribs,
  36. LPCWSTR pszDestFile,
  37. DWORD dwDestAttribs
  38. );
  39. private:
  40. ULONG _uRefs; // OLE reference count
  41. };
  42. #endif // __COPYHOOK_HXX__