Hello,
You mean alpha numeric mode? You mean as you would in fopen("filename.txt",
"rt") ?
After you read into the buffer, you can parse into lines by looking for \n
or \r\n combinations.
--
Elias
"Anand Kalyan" <kanand...sstil.com> wrote in message
news:uEvf2A4yDHA.2452...tk2msftngp13.phx.gbl...
> Hi.
> I could be able to read the contents from the file from the kernel mode...
> It reads in ASCII format ...
> How to make it read in the same format as it is in the file?
> The code I have used is..
> ntStatus = ZwCreateFile( &NtFileHandle,
> SYNCHRONIZE | FILE_READ_DATA, // I have tried
> with GENERIC_READ also...
> &ObjectAttributes,
> &IoStatus,
> NULL, // alloc size
> =none
> FILE_ATTRIBUTE_NORMAL,
> FILE_SHARE_READ,
> FILE_OPEN,
> FILE_SYNCHRONOUS_IO_NONALERT |
> FILE_NON_DIRECTORY_FILE,
> NULL, // eabuffer
> 0 ); // ealength
>
> ntStatus = ZwReadFile( NtFileHandle,
> NULL,
> NULL,
> NULL,
> &IoStatus,
> FileImage, // Read Buffer
> LengthOfFile,
> NULL,
> NULL );
> where to make the change to read it in AlphaNumeric mode... ( ie I want
the
> content of the Read Buffer[FileImage] in Alphanumeric format)?
> Regards,
> Anand.
>
lallous
| Tue, 20 May 2008 08:09:00 GMT |