Am I missing something? Using notepad to read data...

Hi,

I have implemented the IRP_MJ_READ dispatch routine for my file system
driver, and I am currently in the process of testing the dispatch handler…
I have managed to open a small 1k byte text file using Wordpad, however
notepad fails to read any data from the file and treats it as an empty file.

Why is this? how does notepad actually read the data from the file?!

Any advice appreciated
Regards

James

General Dynamics United Kingdom Limited
Registered in England and Wales No. 1911653
Registered Office: 100 New Bridge Street, London, EC4V 6JA

>> Why is this? how does notepad actually read the data from the file?!

notepad uses memory maped files. Are you properly suporting paging IO and
corectly intialize support for MMF ?

----- Original Message -----
From: “James Dunning”
To: “File Systems Developers”
Sent: Monday, September 09, 2002 1:40 PM
Subject: [ntfsd] Am I missing something? Using notepad to read data…

> Hi,
>
> I have implemented the IRP_MJ_READ dispatch routine for my file system
> driver, and I am currently in the process of testing the dispatch
handler…
> I have managed to open a small 1k byte text file using Wordpad, however
> notepad fails to read any data from the file and treats it as an empty
file.
>
> Why is this? how does notepad actually read the data from the file?!
>
> Any advice appreciated
> Regards
>
> James
>
>
> General Dynamics United Kingdom Limited
> Registered in England and Wales No. 1911653
> Registered Office: 100 New Bridge Street, London, EC4V 6JA
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@rdsor.ro
> To unsubscribe send a blank email to %%email.unsub%%
>

Notepad uses memory mapping. If it fails, it is probably because you don’t
set up FileObject->SectionObjectPointers.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: James Dunning [mailto:xxxxx@generaldynamics.uk.com]
Sent: Monday, September 09, 2002 6:40 AM
To: File Systems Developers
Subject: [ntfsd] Am I missing something? Using notepad to read data…

Hi,

I have implemented the IRP_MJ_READ dispatch routine for my file system
driver, and I am currently in the process of testing the dispatch handler…
I have managed to open a small 1k byte text file using Wordpad, however
notepad fails to read any data from the file and treats it as an empty file.

Why is this? how does notepad actually read the data from the file?!

Any advice appreciated
Regards

James

General Dynamics United Kingdom Limited
Registered in England and Wales No. 1911653
Registered Office: 100 New Bridge Street, London, EC4V 6JA


You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to %%email.unsub%%