I have recently written a DEFLATE compressor and decompressor. As far as I understand the fstream Windows gives you does not include NTFS attributes as these are found in the $MFT. I need to go over NTFS again to make clear what is happening there. Windows right click context menu Zip seems to store NTFS file attributes. Am I wrong to think that the $MFT header, up until file data, is simply being copied into the Zip Archives Local File Header's 'Extra Field'? I say up to, because if I recall correctly, a file can be stored in an $MFT attribute.
I've tried going over the specifications and I looked for similar cases. No cases were found. I will be reading the Local File Headers and will be parsing the Extra Field to see if the information is stored there over the next week.
[EDIT]
I could call NtQueryInformationFile and ask for FileAllInformation and store the struct. I'd like to be able to read a Windows Zip with extended attributes though.