Re: Does HANDLE contain information like file pointer?
- From: "Dean Ramsier" <ramsiernospam@xxxxxxxxxx>
- Date: Mon, 16 Oct 2006 09:16:30 -0400
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
.
- References:
- Does HANDLE contain information like file pointer?
- From: eg_yskaa
- Does HANDLE contain information like file pointer?
- Prev by Date: Re: SDHC driver
- Next by Date: Re: Is data section of Rom-based DLL resvered for every process SLOT?
- Previous by thread: Does HANDLE contain information like file pointer?
- Next by thread: Re: Does HANDLE contain information like file pointer?
- Index(es):
Relevant Pages
|