Re: Does HANDLE contain information like file pointer?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Wrong about everything, except for the fact that the file is probably
located in RAM (even that is not guaranteed, depends on your device). You
have to use the defined interfaces in order to access files.

--
Dean Ramsier - eMVP
BSQUARE Corporation


<eg_yskaa@xxxxxxxxxxxx> wrote in message
news:1160994114.945438.263760@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,

I am working on a Window's CE file and I have a question about the
HANDLE of a file. Suppose that I transfer a file from PC to my device
(e.g. via ActiveSync) into a Temp directory.I can work on that file by
calling "CreateFile" which gives a HANDLE to a file, then use that
HANDLE to read the file content by calling "ReadFile". If my assumption
is correct the file actually resides in the RAM. I am wondering if I
can skip this operation by directly converting the HANDLE into a
pointer which points to the file directly. Then I can skip the
"ReadFile" operation which save the file content into a buffer. Is my
assumption correct? If it is so can anyone tell me how can I convert a
HANDLE into something like a pointer so that I can directly access to
the file content? Thanks a lot.

Regards,
Nicholas



.



Relevant Pages

  • Does HANDLE contain information like file pointer?
    ... HANDLE to read the file content by calling "ReadFile". ... "ReadFile" operation which save the file content into a buffer. ... HANDLE into something like a pointer so that I can directly access to ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Does HANDLE contain information like file pointer?
    ... The file could be in the RAM ... file system or on newer Windows Mobile devices, or other embedded devices ... HANDLE into something like a pointer so that I can directly access to ... Start by looking into Memory Mapped files ) ...
    (microsoft.public.windowsce.platbuilder)
  • Re: [PHP] readfile() problem
    ... readfile() will slurp the whole file into RAM, and then spit it out to ... But it's kinda moot, really, as the solution either way ... and I think all the browsers ignore case anyway, so it's kind of moot, ...
    (php.general)
  • Re: Declaring static pointers.
    ... a pointer to my house might be: ... However, in the current context, we refer to an address in memory, ... ROM and RAM might exist in completely different ...
    (comp.lang.c)
  • Re: PCI Grafikkarte Empfehlung gesucht
    ... ein Pointer - eine Variable, deren Wert eine Adresse ist und, welche auf ... Wo ein Pointer liegt, ist prinzipiell egal - im Register oder im RAM. ...
    (de.comp.hardware.graphik)