I want to call a API function or some method to know if I have the right to write to specified directory on remote server. like "\\pathname\filename",
before I made modification on "filename", I want to check if I have the certain
access right.
I shared a foler on my machine, and then access this folder from local net to write something, can't be done due to I have no permision to do this.
I can use GetFileAttributes() to check if it is read only, but this function return the same result both local or remote environment.