I'm using Python but I think the same problem exists in C#.
I'd like to be able to support extended paths (paths with len > 260 which are represented like //?/c:/blah/blah). It looks like the standard way to move files to the recycle bin is via SHFileOperationW or SHFileOperation.
In python the helpful xplatform library, move2trash, uses SHFileOperationW. A few articles on C# say to use the same thing.
The problem with SHFileOperationW is that it doesn't support extended paths. This is a general limitation of the SH tools.
Does anyone have any tricks for dealing with the recycle bin and extended paths?
reference links: C# version, Python version