Ivan Peevski cyberhorse@gmail.com writes:
ChangeLog: Followed the documentation at http://msdn.microsoft.com/en-us/library/w7sa2b22(VS.80).aspx. First, ignore pmode if the file already exist. Then, apply pmode permissions to the file, once it has been created.
This should be done by passing the right attributes to CreateFile. You shouldn't need a separate chmod call.