CallbackRegistry

Control over registry operations in Windows and .NET applications

OnRenameOrMoveFileN event/delegate/notification

Filter:

Pascal    C++ (Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET   

CallbackRegistry     See also    

Overview

This notification callback is called when the OS needs to rename or move the file within a file system.

Declaration

[Pascal]
    property OnRenameOrMoveFileN : TCbFltRenameOrMoveFileEventN;
    TCbFltRenameOrMoveFileEventN = procedure(Sender : TObject; FileName: TCBString; NewFileName: TCBString; Status : DWORD) of object;
    type TCBString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[C++ (Lib)]
    typedef void (*CbFltRenameOrMoveFileEventN)(CallbackRegistry* Sender, LPWSTR FileName, LPCWSTR NewFileName, LONG Status);

[C++ (VCL)]
    typedef void __fastcall (__closure *TCbFltRenameOrMoveFileEventN)(System::TObject* Sender, TCBString FileName, TCBString NewFileName, DWORD Status);

[C++ (.NET)]
    public delegate void CbFltRenameOrMoveFileEventN(CallbackRegistry^ Sender, String^ FileName, String^ NewFileName, Int32 Status);

[C#]
    delegate void CbFltRenameOrMoveFileEventN(CallbackRegistry Sender, string FileName, string NewFileName, Int32 Status);

[VB.NET]
    Delegate Sub CbFltRenameOrMoveFileEventN(ByVal Sender As CallbackRegistry, ByVal FileName As String, ByVal NewFileName As String, ByVal Status As Int32)

Parameters

  • Sender - reference to the class that called the delegate/event handler
  • FileName - old name of the file
  • ReplaceIfExists - specifies whether existing file should be replaced
  • Status - status code of the completed operation

Description

This notification callback is called when the OS needs to rename or move the file within a file system.

See also

OnRenameOrMoveFileC     OnPostRenameOrMoveFileC    

Back to top