derive attributes for virtual reverse-mode diriv file from the attributes of its directory
| 45 | // derive attributes for virtual reverse-mode diriv file from |
| 46 | // the attributes of its directory |
| 47 | static DWORD |
| 48 | VirtualAttributesDirIv(DWORD attr) |
| 49 | { |
| 50 | attr &= ~(FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_NORMAL); |
| 51 | attr |= FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_ARCHIVE; |
| 52 | return attr; |
| 53 | } |
| 54 | |
| 55 | // derive attributes for virtual reverse-mode longname name file |
| 56 | // from the attributes of its related file or directory |
no outgoing calls
no test coverage detected