Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SHFileOperation (Windows CE 5.0)

Windows CE 5.0
Send Feedback

This function can be used to copy, move, rename, or delete a file system object.

Syntax

int SHFileOperation(
  LPSHFILEOPSTRUCT lpFileOp
);

Parameters

lpFileOp
[in] Address of an SHFILEOPSTRUCT structure that contains information this function needs to carry out the specified operation.

Return Values

Returns zero if successful, or nonzero otherwise.

Remarks

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.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Shellapi.h.
Link Library: Ceshell.lib.

See Also

Standard Shell Functions | SHFILEOPSTRUCT | DeleteFile


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show:
© 2015 Microsoft