Prev Next

SHFileOperation info

Performs a copy, move, rename, or delete operation on a file system object.

WINSHELLAPI int WINAPI SHFileOperation(

    LPSHFILEOPSTRUCT lpFileOp

   );

Parameters

lpFileOp
Pointer to an SHFILEOPSTRUCT structure that contains information the function needs to carry out the operation.

Return Values

Returns zero if successful or nonzero if an error occurs.

Note:

To delete an entire directory and subfiles and directories: Set pFrom to directory name (example c:\MyDir) set wFunc member to FO_DELETE,all the other members could be 0. Have a look at your API reference for detailed explaination of all the other members of the structure. then use: invoke SHFileOperation, addr sh

See Also

SHFILEOPSTRUCT 

See: