Hi,

I've gotta a bit of a strange question, I don't even know if it is possible.

Can anyone tell me how you can get a programs caption without it being open? because I am making a program to password protect a directory and the files in it, now the directory bit works fine it closes it, and prompts for a password, but the files bit doesn't because there are 2 ways I have worked out how to close a program running, the first was to enum all the current windows running and searching for the programs caption to get the windows class to close it, or the second one is to use the programs caption to find its class with out enumulating all the windows, both which require the programs title or caption which ever you want to call it, but its ok for a folder because what the folder is called is what the folders title is as well, but with a program a .exe or what ever the .exe may be Crypt.exe but the programs caption when launched could be anything, so does anyone know a way to find a .exe's or other files caption?

thanx in advance.