Class ICopyHook (unit MyShlObj)

Inherits from

IUnknown

ICopyHook Interface } { The copy hook is called whenever file system directories are copy/moved/deleted/renamed via the shell. It is also called by the shell on changes of status of printers. Clients register their id under STRREG_SHEX_COPYHOOK for file system hooks and STRREG_SHEx_PRNCOPYHOOK for printer hooks. the CopyCallback is called prior to the action, so the hook has the chance to allow, deny or cancel the operation by returning the falues: IDYES - means allow the operation IDNO - means disallow the operation on this file, but continue with any other operations (eg. batch copy) IDCANCEL - means disallow the current operation and cancel any pending operations arguments to the CopyCallback hwnd - window to use for any UI wFunc - what operation is being done wFlags - and flags (FOF_*) set in the initial call to the file operation pszSrcFile - name of the source file dwSrcAttribs - file attributes of the source file pszDestFile - name of the destiation file (for move and renames) dwDestAttribs - file attributes of the destination file

Constructors



Functions

function CopyCallback(Wnd: HWND; wFunc, wFlags: UINT; pszSrcFile: LPSTR; dwSrcAttribs: DWORD; pszDestFile: LPSTR; dwDestAttribs: DWORD): UINT;


Properties

Events

Variables


Constructors


Functions


function CopyCallback(Wnd: HWND; wFunc, wFlags: UINT; pszSrcFile: LPSTR; dwSrcAttribs: DWORD; pszDestFile: LPSTR; dwDestAttribs: DWORD): UINT;


Properties


Events


Variables