On Fri Aug 4 14:49:07 2023 +0000, Jinoh Kang wrote:
If the desktop object was a directory, we could use it as a RootDirectory and avoid the name aliasing problem above.
thread_info->desktop_shm = map_shared_memory_section( wine_desktop_mapping_str, sizeof(*thread_info->desktop_shm), NtUserGetThreadDesktop( GetCurrentThreadId() ) );
Maybe, but this is also solved otherwise by unlinking the mapping when the desktop is unlinked.
Making the desktop work as a directory feels to me like a change to the way the object desktop behaves, which is more risky than having a wine-specific directory in the WindowsStations directory. It also suggests that desktop is supposed to contain other objects on Windows, whereas it would only be a Wine-specific thing.