SHFileOperation (Windows CE 5.0)
This function can be used to copy, move, rename, or delete a file system object.
int SHFileOperation( LPSHFILEOPSTRUCT 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 path names with this function. Using it with relative path names is not thread-safe.
When used to delete a file, SHFileOperation attempts to place the deleted file in the Recycle Bin. If you wish to delete a file and guarantee that it is not placed in the Recycle Bin, use DeleteFile.
OS Versions: Windows CE .NET 4.2 and later.
Link Library: Ceshell.lib.
Send Feedback on this topic to the authors