The hack allowing to get the directory path from an Explorer window at an arbitrary (X, Y) location doesn't work anymore.
You can notice by running the sample (project: gwindows_samples.gpr) cap_test.adb.
Some keywords to explore a solution:
SHDocVw
ShellWindowsClass
path
NB: Ada generated code exists for SHDocVw, see tutorials\msie\ie.ads
Additionally the recommended method seen on Stack Overflow is to enumerate objects in the SHDocVw.ShellWindows collection; for each ie in that collection, match those with ie.FullName = "explorer" (after some treatement); grab the path via ie.LocationURL.
The hack allowing to get the directory path from an Explorer window at an arbitrary (X, Y) location doesn't work anymore. You can notice by running the sample (project: gwindows_samples.gpr) cap_test.adb.
Some keywords to explore a solution:
SHDocVw ShellWindowsClass path
NB: Ada generated code exists for SHDocVw, see tutorials\msie\ie.ads Additionally the recommended method seen on Stack Overflow is to enumerate objects in the SHDocVw.ShellWindows collection; for each ie in that collection, match those with ie.FullName = "explorer" (after some treatement); grab the path via ie.LocationURL.