Detect file and folder selection
Posted on 2000-01-02
I would like to be able to detect when a Windows Explorer folder or file is selected without having to "poll" for changes.
This could take either of 2 forms that occur to me:
1) Run a shell extension similar to a context menu or property
sheet handler, but immediately on file or folder selection.
2) Recieve a notification similar to what you get with the undocumented API "SHChangeNotifyRegister". As far as I know
this function doesn't detect selection.
Any other methods are fine if they do the job.
Please note that I don't want to resort to using "desktop.ini" files since I would like to detect selection anywhere in the file system.
I would also like to retrieve the selected path/file name.