Replace the legacy folder dialog with the new IFileDialog dialog, enabling path entry.
(Left) Legacy SHBrowseForFolder dialog, (Right) modern IFileDialog dialog.
- Install Frida (
npm -g install frida frida-compile) - Open
Visual Studioand buildSHBrowseForFolderExample.sln - Execute
compile.cmdto merge the scripts - Execute
run.cmdto launch and attach Frida - Select
File->Open...to invoke the folder selection dialog.
- Launch SHBrowseForFolderExample.exe
- Locate the
PROCESSIDin task manager - Attach Frida manually:
frida -p PROCESSID -l Fix-SHBrowseForFolder.compiled.js
Once Frida is attached, you will see Ready in the log.
Once Open... is clicked and a file selected, these entries will be in the log:
SHBrowseForFolder Entry
Flags: 0x0
SHBrowseForFolder Exit 0x3f1f898
