Group: Shell Functions - Library: shell32
Deleting files into the Recycle Bin
Displaying standard progress dialog box when copying files
How to remove a directory that is not empty
int SHFileOperation(
LPSHFILEOPSTRUCT lpFileOp
); DECLARE INTEGER SHFileOperation IN Shell32;
STRING @lpFileOp lpFileOp [in] Address of an SHFILEOPSTRUCT structure that contains information this function needs to carry out the specified operation.
Returns zero if successful, or nonzero otherwise.
You should use fully-qualified pathnames with this function. Using it with relative path-names is not thread-safe.
When used to delete a file, SHFileOperation will attempt to place the deleted file in the Recycle Bin. If you wish to delete a file and guarantee that it will not be placed in the Recycle Bin, use DeleteFile.
While operating on a file this function displays a standard progress dialog box unless the FOF_SILENT flag is set in fFlags. The lpszProgressTitle parameter sets the title of this dialog.
See also: CopyFile, CopyFileTransacted, MoveFile, MoveFileTransacted, DeleteFile, DeleteFileTransacted.
Home