Alex Rivera | Logout

Get FileSystem Restrictions

Asked 2012-10-14T07:24:26.903
8

I would like to code a function that tells me if it's possible to WRITE a file/folder to a specific path or not. I would like to do that WITHOUT actually writing any file(s) to the disk. Is there a WINAPI function for that? Thank you for your help.

Edit
Report

1 Answer

12

You can use GetFileSecurity() and AccessCheck() functions. Read the Aaron Ballman's article on How to Check Access Rights. He provided the CanAccessFolder() function to do what you asked.

answered 2012-10-14T08:14:06.660

Your Answer