# ReactOS investigates SHFileOperation and considers an IFileOperation implementation

DevFeed: [ReactOS investigates SHFileOperation and considers an IFileOperation implementation](<https://devfeed.tech/articles/circular-leaks-32769.md>)

Original publisher: [Read original article](<https://reactos.org/blogs/circular-leaks/>)

Published: 2014-10-19T00:00:00Z

Content type: article

Language: en

Sources: [Front Page on ReactOS Website](<https://devfeed.tech/sources/front-page-on-reactos-website.md>)

Topics: [file](<https://devfeed.tech/topics/file.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [function](<https://devfeed.tech/topics/function.md>), [dialog](<https://devfeed.tech/topics/dialog.md>), [Windows](<https://devfeed.tech/topics/windows.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [copy](<https://devfeed.tech/tags/copy.md>), [file](<https://devfeed.tech/tags/file.md>), [files](<https://devfeed.tech/tags/files.md>), [free](<https://devfeed.tech/tags/free.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [interface](<https://devfeed.tech/tags/interface.md>), [microsoft](<https://devfeed.tech/tags/microsoft.md>), [moving](<https://devfeed.tech/tags/moving.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [operations](<https://devfeed.tech/tags/operations.md>), [os](<https://devfeed.tech/tags/os.md>), [problems](<https://devfeed.tech/tags/problems.md>), [react](<https://devfeed.tech/tags/react.md>), [reactos](<https://devfeed.tech/tags/reactos.md>), [tests](<https://devfeed.tech/tags/tests.md>), [win32](<https://devfeed.tech/tags/win32.md>), [winapi](<https://devfeed.tech/tags/winapi.md>), [windows](<https://devfeed.tech/tags/windows.md>)

## AI overview

A ReactOS developer reports testing SHFileOperation by moving, copying, and deleting folder structures, but could not reproduce the suspected file-writing problem. The article then examines whether to fix SHFileOperation directly or implement it around IFileOperation, including Microsoft's internal approach.

## Source excerpt

Hello again! As I mentioned in the last report, I had been writing tests to find the problems in SHFileOperation. All I knew was that in some situations it would end without fully writing some file, so I wrote tests moving, copying and deleting a folder structure, and comparing the copy with the original. I tried with empty files first, then with files of random sizes, then with really big files, and also with a lot of files of relatively small size.