IOSTACK_LOCATION.Parameters.Read.ByteOffset always 0

i’am in driver map virtual disk file system into user-process.
In function majorcode IRP_MJ_READ the value IOSTACK_LOCATION::Parameters.Read.ByteOffset is always 0.

yet i’am set irp->IoStatus.Information with return STATUS_SUCCESS

i’am build a test project under :
HANDLE f=CreateFile(“n:\test.nf”,GENERIC_READ,0,NULL,OPEN_EXISTING,0,NULL);
if (f!=INVALID_HANDLE_VALUE)
{
char buf[128];
DWORD dt;
ReadFile(f,buf,4,&dt,NULL); IOSTACK_LOCATION::Parameters.Read.ByteOffset should be 0
ReadFile(f,buf,4,&dt,NULL); IOSTACK_LOCATION::Parameters.Read.ByteOffset should be equal 4
CloseHandle(f);
}
return 0;

Readfile read always at byteoffset = 0
Why ?

What I’m stupid.

I had ignored the variable FILE_OBJECT: CurrentByteOffset
Problem solved

I thought what CurrentByteOffset it was neat FASTFAT driver, I’m going a little too fast!

… and if this was a file system question, it should have been posted to NTFSD not this list.

Peter
OSR

ok