I wish to be able to detect if a 'secured' folder is selected/clicked so that I can ask for a password to 'open' the folder, can anyone give me a hint on where or what to look for?

Been trying to google but I am not finding anything useful in my case.

TIA