StorageProviderCopyHookBaseCopyCallback Method |
IT Hit User File System
Determines whether the Shell will be allowed to move, copy, delete,
or rename a folder in a cloud provider's sync root.
Namespace:
ITHit.FileSystem.Windows.ShellExtension
Assembly:
ITHit.FileSystem.Windows.ShellExtension (in ITHit.FileSystem.Windows.ShellExtension.dll) Version: 8.4.27341.0
Syntax public int CopyCallback(
IntPtr parentWindow,
FolderOperation fileOperation,
FolderControlFlags flags,
string source,
FileAttributes sourceAttributes,
string destination,
FileAttributes destinationAttributes,
out FolderOperationControl result
)
Public Function CopyCallback (
parentWindow As IntPtr,
fileOperation As FolderOperation,
flags As FolderControlFlags,
source As String,
sourceAttributes As FileAttributes,
destination As String,
destinationAttributes As FileAttributes,
<OutAttribute> ByRef result As FolderOperationControl
) As Integer
public:
virtual int CopyCallback(
IntPtr parentWindow,
FolderOperation fileOperation,
FolderControlFlags flags,
[InAttribute] String^ source,
FileAttributes sourceAttributes,
[InAttribute] String^ destination,
FileAttributes destinationAttributes,
[InAttribute] [OutAttribute] FolderOperationControl% result
) sealed
abstract CopyCallback :
parentWindow : IntPtr *
fileOperation : FolderOperation *
flags : FolderControlFlags *
source : string *
sourceAttributes : FileAttributes *
destination : string *
destinationAttributes : FileAttributes *
result : FolderOperationControl byref -> int
override CopyCallback :
parentWindow : IntPtr *
fileOperation : FolderOperation *
flags : FolderControlFlags *
source : string *
sourceAttributes : FileAttributes *
destination : string *
destinationAttributes : FileAttributes *
result : FolderOperationControl byref -> int
Parameters
- parentWindow
- Type: SystemIntPtr
A handle to the window that the copy hook handler should use as the parent for any user interface
elements the handler may need to display. If FOF_SILENT is specified in operation,
the method should ignore this parameter.
- fileOperation
- Type: ITHit.FileSystem.WindowsFolderOperation
The operation to perform.
- flags
- Type: ITHit.FileSystem.WindowsFolderControlFlags
The flags that control the operation FolderControlFlags enum.
- source
- Type: SystemString
String that contains the name of the source folder.
- sourceAttributes
- Type: System.IOFileAttributes
The attributes of the source folder. This parameter can be a combination of any of the file attribute flags.
- destination
- Type: SystemString
String that contains the name of the destination folder.
- destinationAttributes
- Type: System.IOFileAttributes
The attributes of the destination folder. This parameter can be a combination of any of the file attribute flags.
- result
- Type: ITHit.FileSystemFolderOperationControl
The integer value that indicates whether the Shell should perform the operation.
Return Value
Type:
Int32
Returns S_OK if successful, or an error code otherwise.
Implements
IStorageProviderCopyHookCopyCallback(IntPtr, FolderOperation, FolderControlFlags, String, FileAttributes, String, FileAttributes, FolderOperationControl)See Also