CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    1

    How to lock file...?

    Hi ^^
    I want to lock a specific file or directory.
    for example, after my program sets a file or dir to lock, nobody can delete the file or dir in windows 95, 98.
    it's just like security process in windows nt.
    I want to make the security process.
    Do you have any idea? PLEASE let me know..
    THANKS


  2. #2
    Join Date
    Apr 1999
    Posts
    25

    Re: How to lock file...?

    Hello,

    If you open a file by associating it with a CFile object you can specify a sharing option like shareDenyNone, shareDenyWrite, etc. If you want to lock a directory, check the functions available in direct.h; they let you change or modify directories. Hope this helps.


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

Featured