Results 1 to 5 of 5

Thread: Magic Folder

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    19

    Post

    Anyone know how to protect a folder from Access.

    I mean when someone open my folder my program will load and ask for permision.
    Thanks

  2. #2
    Junior Member
    Join Date
    Feb 2000
    Posts
    22

    Post

    Use the GetForegroundWindow and GetWindowText api to watch for the name of the folder. When a match is found, use the hwnd to minimize the folder till a password is entered.


  3. #3
    Junior Member
    Join Date
    Feb 2000
    Posts
    22

    Post

    Use the GetForegroundWindow and GetWindowText api to watch for the name of the folder. When a match is found, use the hwnd to minimize the folder till a password is entered.
    *This is easily defeated by renaming the folder*

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    19

    Post

    Thanks for you help. It is really nice.
    But I still can do the job.
    I want another help from you.
    I want to know how do I keep watching and verify for the Folder I want to protect.
    I can do now just when my program load.

    But not when a folder is opened.

    Thanks in advance,
    Vbkids

  5. #5
    Junior Member
    Join Date
    Feb 2000
    Posts
    22

    Post

    Just set a timer control to go off every couple of seconds to check for the folder's caption.
    May the source be with you

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