I have a program that deletes and copies some folders or files with a long path (when long> MAX_PATH). In this program, I use a prefix \\?\that gives me the ability to delete folders or files with a long path, but only in a simple function Delete(). I need to delete files in the Recycle Bin, and for this I need to use a function SHFileOperationthat gives me the ability to delete files in the Recycle Bin, but this function does not support the prefix \\?\. Can someone help me on this?
Is there an alternative to SHFileOperation. How can I get around this problem?
Some links:
user1485528
source
share