I'm confused. What you've tried out my code in the other thread? The code which uses GetSpecialFolder, then uses your special C code to give it full permissions, then writes a text file into it?
Sure if I use GetSpecialFolder on it's own and try to write to that folder + subpath (that was created by another user), the file write will fail. But the issue is not with the method of getting the path, it's simply that the write SHOULD fail until the subpath is given full permission (with your code).
Are we singing from the same hymn sheet or am I missing something? Because I don't want to find any problems down the road with the new code.
Sure if I use GetSpecialFolder on it's own and try to write to that folder + subpath (that was created by another user), the file write will fail. But the issue is not with the method of getting the path, it's simply that the write SHOULD fail until the subpath is given full permission (with your code).
Are we singing from the same hymn sheet or am I missing something? Because I don't want to find any problems down the road with the new code.