PDA

View Full Version : Testing For Permissions



NewsArchive
02-05-2015, 02:59 AM
I have found the "Set Access Control" function in SB8, but is there a
way to TEST access control from within a folder?

I'd need to do this using the AsInvoker setting (e.g. the same as our
running application).

If SB8 doesn't have this ability, would this be the correct tree to
bark up? https://msdn.microsoft.com/en-us/library/aa375742(VS.85).aspx

If not, which tree should I bark up?<g>

Thanks.

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.

NewsArchive
02-05-2015, 03:00 AM
Looks like CreateFile() ought to do it.

http://stackoverflow.com/questions/198071/code-for-checking-write-permissions-for-directories-in-win2k-xp

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.

NewsArchive
02-05-2015, 03:00 AM
Hi Jeff,

>
> Looks like CreateFile() ought to do it.
>

Or you can use the built-in "If File/Folder..." control statement :-)

Friedrich

NewsArchive
02-05-2015, 12:17 PM
Thank you Friedrich.

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.