Hi,
I am working on samsung blackjack || on windows mobile 6. I have
patched CreateFile ,ReadFile ,WriteFile and GetFileInformationByHandle
file system calls. If i call CreateFile form some app and call
readfile subsequently on the handle obtained , it looks like the
handle value is changed somehow before it reaches ReadFile. So my
question is does anybody know how the file handles are mapped between
functions calls of CreateFile and the rest of the functions i listed
above(readfile,writefile...).

Thanks

Re: File handle changes by Chris

Chris
Wed Jul 16 16:14:32 CDT 2008

The handle in not passed by reference and it's a DWORD, so if it's changing
then your application is somehow making that change.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com


"Sura" <surlakew@gmail.com> wrote in message
news:5494ae63-000e-4ec4-8f88-cb82ae6b7bfa@d45g2000hsc.googlegroups.com...
> Hi,
> I am working on samsung blackjack || on windows mobile 6. I have
> patched CreateFile ,ReadFile ,WriteFile and GetFileInformationByHandle
> file system calls. If i call CreateFile form some app and call
> readfile subsequently on the handle obtained , it looks like the
> handle value is changed somehow before it reaches ReadFile. So my
> question is does anybody know how the file handles are mapped between
> functions calls of CreateFile and the rest of the functions i listed
> above(readfile,writefile...).
>
> Thanks



Re: File handle changes by Daqi

Daqi
Wed Jul 16 21:23:08 CDT 2008

Sura wrote:
> Hi,
> I am working on samsung blackjack || on windows mobile 6. I have
> patched CreateFile ,ReadFile ,WriteFile and GetFileInformationByHandle
> file system calls. If i call CreateFile form some app and call
> readfile subsequently on the handle obtained , it looks like the
> handle value is changed somehow before it reaches ReadFile. So my
> question is does anybody know how the file handles are mapped between
> functions calls of CreateFile and the rest of the functions i listed
> above(readfile,writefile...).
>
> Thanks

That's something really interesting. Could you somehow post the source?

Regards,

Daqi Pei
http://www.peidaqi.com