Setting file permissions with SetAttributes (General questions)
If I only need to set file permissions, can I do this without a prior GetAttributes (and its callback) by nulling the other attributes? From the manual, I would expect this to work:
SetAttributes (handle, pRemotePath,
(__int64) -1, -1L, -1L, 0666L, NULL, NULL);
Is this sufficient or is there some other subtle gotcha?
Complete thread:
- Setting file permissions with SetAttributes - KevinKay, 2005-02-02, 20:49
- Re: Setting file permissions with SetAttributes - wodSupport, 2005-02-02, 21:07