I have a sandbox system redirecting file modifications by hooking Ntxxx file system APIs. An interesting thing is, if i move files in Notepad->File/Open dialog in my sandbox, e.g. from desktop\a.txt to desktop\b\a.txt, the a.txt file on real desktop just disappears, and it comes back after i refresh real desktop by pressing F5. actually there is no change in desktop folder at all, because all changes are directed. I know that most apps use API like ReadDirectoryChanges to monitor changes, but apparently explorer is doing something different. I tried tools like https://directorymonitor.com/, they did not observe any changes on desktop. I guess SHFileOperation internally interact with explorer somehow, but who knows details and how can i prevent this notification? It is really strange for users to see a file disappearing while it is actually still there.
Windows explorer monitors directory changes in a tricky way?
264 Views Asked by herb At
1
There are 1 best solutions below
Related Questions in WINAPI
- Make screenshot of DirectX window that is hidden and doesn't have focus
- Is it valid to mutilayered a critical section?
- Implementing callback function for dialog-based application
- Where is the 'EnablePinning' property in the ribbon framework's recent items?
- Confusion about CTRL_SHUTDOWN_EVENT handling in DLLs and WM_QUERYENDSESSION
- Standard control transparency. Possible?
- Disable all power options from the Start menu
- call Win32 API in flex to set Window Display Affinity
- heap error after changing from new allocation to smartpointer
- Win API - Delete all files except some
- Finding the default application for a particular file name extension (Even when served by a metro app)
- How do I declare OutputDebugStringA without windows.h macros?
- WPF giving maximize,minimize,resize control to child window
- Can a dialog intercept drag'n'drop messages passed to its controls?
- WinApi and work with several domains
Related Questions in EXPLORER
- Set folder display thumbnail in Explorer with C#
- How to enter an escape sequence when using ProcessBuilder to open Windows file explorer and highlight the file?
- How to end explorer.exe in Windows 8.1 (It restarts each time I do so)
- Eclipse file explorer not working with real device
- can't find file explorer in android studio
- Subclass Windows File Explorer
- Notify Windows Explorer that a wallpaper has been changed
- cmd, Open file in Command Prompt shell without knowing its extension
- How to copy attribute of svg graphic (from html to excel)
- Open file explorer at coordinates
- explorer and mozilla doesn't show website calendar
- Java Fx Drag and Drop to windows explorer - gestureTarget is always null / explorer should wait
- Error 500 launching the Web Service Explorer with Eclipse
- Visual Studio "Open as a Web Site" context menu option
- How to get F# scripts files and other script languages to work like .exe, .cmd, and .bat files in Windows
Related Questions in READDIRECTORYCHANGESW
- FileSystemWatcher no longer has old filename in some Windows 7 machines
- How should I read the filename in FILE_NOTIFY_INFORMATION struct
- Monitoring directory using ReadDirectoryChangesW API
- How to detect when a folder change is completed?
- Python script to monitor a directory triggers twice when a file is updated. Why?
- File-level filesystem change notification in Mac OS X
- ReadDirectoryChangesW File Moved Workaround
- ReadDirectoryChangesW issues
- Using FileSystemWatcher on DataOntap
- CreateFile ,ReadDirectoryChanges issue
- Windows explorer monitors directory changes in a tricky way?
- .NET How to combine FileSystemWatcher with ReadDirectoryChangesW to monitor Folder/File Opening?
- How to prevent ReadDirectoryChangesW from returning spurious Modified events when iterating directory
- ReadDirectoryChangesW not notifying when moving the files
- How to delete parent of child being monitored by ReadDirectoryChangesW
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
windows calls windows_storage!SHChangeNotify instead of that one in shell32. Why does Windows have two copies of same API, are they different?