From: dmitry.sychov on
Greetings

I'am assuming
ZwQueryInformationFile(..FileAlignmentInformation..) to always return

FILE_BYTE_ALIGNMENT(0)
for files opened without FILE_NO_INTERMEDIATE_BUFFERING

and FILE_512_BYTE_ALIGNMENT(0x1ff)
for files opened with FILE_NO_INTERMEDIATE_BUFFERING on sector size =
512

but for me the return is always FILE_WORD_ALIGNMENT(1) ie completely
meanless number

of course ZwReadFile/ZwWriteFile for files opened with
FILE_NO_INTERMEDIATE_BUFFERING
fails unless the number of read/write bytes and offset is not the
integral of volume sector size(512)

so whats going on here?

test system is XP SP2


thank you, dmitry