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
53 lines
1.1 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1995 - 1995.
|
|
//
|
|
// File: copyhook.hxx
|
|
//
|
|
// Contents: CShareCopyHook definition
|
|
//
|
|
// History: 21-Apr-95 BruceFo Created
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
#ifndef __COPYHOOK_HXX__
|
|
#define __COPYHOOK_HXX__
|
|
|
|
class CShareCopyHook : public ICopyHook
|
|
{
|
|
DECLARE_SIG;
|
|
|
|
public:
|
|
|
|
CShareCopyHook();
|
|
~CShareCopyHook();
|
|
|
|
//
|
|
// IUnknown methods
|
|
//
|
|
|
|
STDMETHOD(QueryInterface)(REFIID riid, LPVOID* ppvObj);
|
|
STDMETHOD_(ULONG,AddRef)();
|
|
STDMETHOD_(ULONG,Release)();
|
|
|
|
//
|
|
// ICopyHook methods
|
|
//
|
|
|
|
STDMETHOD_(UINT,CopyCallback)(
|
|
HWND hwnd,
|
|
UINT wFunc,
|
|
UINT wFlags,
|
|
LPCWSTR pszSrcFile,
|
|
DWORD dwSrcAttribs,
|
|
LPCWSTR pszDestFile,
|
|
DWORD dwDestAttribs
|
|
);
|
|
|
|
private:
|
|
|
|
ULONG _uRefs; // OLE reference count
|
|
};
|
|
|
|
#endif // __COPYHOOK_HXX__
|