I am working on porting a some software form Unix to windows. I create a couple files and want their permissions to be set to 777(or the windows equivilent) they are currently being set with the unix variables:
these of course are not defined in any windows headers. i havnt found a good way of changing them so that this opens a file with full permissions.Code:i_fileID = open( pc_FileName, O_WRONLY|O_CREAT, S_IRUSR|S_IROTH| S_IRGRP|S_IWUSR|S_IWOTH|S_IWGRP|S_IXUSR|S_IXOTH|S_IXGRP);