How to lock a folder.
-
hi all, Can anyone please tell me how to lock a folder,so that the user does not have access to it. Thanks in advance,
-
hi all, Can anyone please tell me how to lock a folder,so that the user does not have access to it. Thanks in advance,
You'll need to search for Access Control Entry (ACE) and Access Control List (ACL).
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
-
hi all, Can anyone please tell me how to lock a folder,so that the user does not have access to it. Thanks in advance,
Hi ashwath2005 maybe it is some helpful to you http://www.codeproject.com/win32/accessctrl4.asp[^]
-
You'll need to search for Access Control Entry (ACE) and Access Control List (ACL).
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
hi, Can you provide me with a code snippet about how to lock a folder.
-
hi, Can you provide me with a code snippet about how to lock a folder.
Well if it contains only few files keep it opened , or else go for ACL and look for the api 1.LockFileEx or 2.SetsecurityFIle (ACL) Regards, FarPointer
-
Well if it contains only few files keep it opened , or else go for ACL and look for the api 1.LockFileEx or 2.SetsecurityFIle (ACL) Regards, FarPointer
hi, Does LockFileEx works for a folder also? I could not find the Api SetsecurityFile in the MSDN.
-
Hi ashwath2005 maybe it is some helpful to you http://www.codeproject.com/win32/accessctrl4.asp[^]
Can i use "SetNamedSecurityInfo" function to lock the folder. If yes,how can i use it.