Results 1 to 2 of 2

Thread: Window titles.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2000
    Posts
    215
    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.

  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263

    Unhappy You can't do it.

    The only way I know of to do it would be to open the file and scan through it for a specific string which is impossible because you don't know what you're looking for! Even if you could, it's not a very reliable method because window captions change frequently during an applications usage to display information to the user. Example: "Microsoft Word - Untitled1".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width