In case of I've got a file larger than 4GByte can I map the entire file into
my address space in 64bit Windows?
MapViewOfFile() supports only a DWORD argument for the mapping size but this
can be left zero to indicate that one wants to map the entire file.
Does this work for files larger than 4GByte?

Re: MapViewOfFile() for file larger than 4GByte? by Andre

Andre
Tue Sep 27 17:47:20 CDT 2005

If you are using FAT32 move to NTFS, it will support that file size.
--
Andre
Extended64 | http://www.extended64.com
Blog | http://www.extended64.com/blogs/andre
http://spaces.msn.com/members/adacosta
FAQ for MS AntiSpy http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm

"Peter" <Peter@discussions.microsoft.com> wrote in message
news:7E81F6F7-3CD1-4FD5-A8B8-4FC2BD410AFE@microsoft.com...
> In case of I've got a file larger than 4GByte can I map the entire file
> into
> my address space in 64bit Windows?
> MapViewOfFile() supports only a DWORD argument for the mapping size but
> this
> can be left zero to indicate that one wants to map the entire file.
> Does this work for files larger than 4GByte?



Re: MapViewOfFile() for file larger than 4GByte? by Norman

Norman
Tue Sep 27 19:32:33 CDT 2005

If he were using FAT32 then his question couldn't arise in the first place.
His file is already greater than 4GB and his question concerns
MapViewOfFile().

"Andre Da Costa [Extended64]" <andred25@hotmail.com> wrote in message
news:uh4$tV7wFHA.596@TK2MSFTNGP12.phx.gbl...
> If you are using FAT32 move to NTFS, it will support that file size.
> --
> Andre
> Extended64 | http://www.extended64.com
> Blog | http://www.extended64.com/blogs/andre
> http://spaces.msn.com/members/adacosta
> FAQ for MS AntiSpy http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm
>
> "Peter" <Peter@discussions.microsoft.com> wrote in message
> news:7E81F6F7-3CD1-4FD5-A8B8-4FC2BD410AFE@microsoft.com...
>> In case of I've got a file larger than 4GByte can I map the entire file
>> into
>> my address space in 64bit Windows?
>> MapViewOfFile() supports only a DWORD argument for the mapping size but
>> this
>> can be left zero to indicate that one wants to map the entire file.
>> Does this work for files larger than 4GByte?
>
>


Re: MapViewOfFile() for file larger than 4GByte? by Andre

Andre
Tue Sep 27 20:04:42 CDT 2005

True.
--
Andre
Extended64 | http://www.extended64.com
Blog | http://www.extended64.com/blogs/andre
http://spaces.msn.com/members/adacosta
FAQ for MS AntiSpy http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm

"Norman Diamond" <ndiamond@community.nospam> wrote in message
news:el$3iQ8wFHA.1148@TK2MSFTNGP11.phx.gbl...
> If he were using FAT32 then his question couldn't arise in the first
> place. His file is already greater than 4GB and his question concerns
> MapViewOfFile().
>
> "Andre Da Costa [Extended64]" <andred25@hotmail.com> wrote in message
> news:uh4$tV7wFHA.596@TK2MSFTNGP12.phx.gbl...
>> If you are using FAT32 move to NTFS, it will support that file size.
>> --
>> Andre
>> Extended64 | http://www.extended64.com
>> Blog | http://www.extended64.com/blogs/andre
>> http://spaces.msn.com/members/adacosta
>> FAQ for MS AntiSpy http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm
>>
>> "Peter" <Peter@discussions.microsoft.com> wrote in message
>> news:7E81F6F7-3CD1-4FD5-A8B8-4FC2BD410AFE@microsoft.com...
>>> In case of I've got a file larger than 4GByte can I map the entire file
>>> into
>>> my address space in 64bit Windows?
>>> MapViewOfFile() supports only a DWORD argument for the mapping size but
>>> this
>>> can be left zero to indicate that one wants to map the entire file.
>>> Does this work for files larger than 4GByte?
>>
>>
>



Re: MapViewOfFile() for file larger than 4GByte? by Charlie

Charlie
Tue Sep 27 23:12:08 CDT 2005

If you're calling from a 64 bit program, then yes, it should grab a file
larger than 4GB, since the address space available is 8TB. But I am NOT a
programmer, and I don't even play one on the Internet any more.

--
Charlie.
http://msmvps.com/xperts64

Peter wrote:
> In case of I've got a file larger than 4GByte can I map the entire file
> into my address space in 64bit Windows?
> MapViewOfFile() supports only a DWORD argument for the mapping size but
> this can be left zero to indicate that one wants to map the entire file.
> Does this work for files larger than 4GByte?



Re: MapViewOfFile() for file larger than 4GByte? by Charlie

Charlie
Tue Sep 27 23:36:24 CDT 2005

I may not be a programmer, but GIYF.

http://www.devx.com/assets/amd/11615.ppt

(google MapViewOfFile() x64)


--
Charlie.
http://msmvps.com/xperts64

Peter wrote:
> In case of I've got a file larger than 4GByte can I map the entire file
> into my address space in 64bit Windows?
> MapViewOfFile() supports only a DWORD argument for the mapping size but
> this can be left zero to indicate that one wants to map the entire file.
> Does this work for files larger than 4GByte?



Re: MapViewOfFile() for file larger than 4GByte? by Mercury

Mercury
Wed Sep 28 04:38:03 CDT 2005

LPVOID MapViewOfFileEx(
HANDLE hFileMappingObject,
DWORD dwDesiredAccess,
DWORD dwFileOffsetHigh,
DWORD dwFileOffsetLow,
SIZE_T dwNumberOfBytesToMap,
LPVOID lpBaseAddress
);

SIZE_T The maximum number of bytes to which a pointer can point. Use
for a count that must span the full range of a pointer.
This type is declared in Basetsd.h as follows:

typedef ULONG_PTR SIZE_T;

IE SIZE_T is = LONG_PTR which *is* 64bit.




"Andre Da Costa [Extended64]" <andred25@hotmail.com> wrote in message
news:uh4$tV7wFHA.596@TK2MSFTNGP12.phx.gbl...
> If you are using FAT32 move to NTFS, it will support that file size.
> --
> Andre
> Extended64 | http://www.extended64.com
> Blog | http://www.extended64.com/blogs/andre
> http://spaces.msn.com/members/adacosta
> FAQ for MS AntiSpy http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm
>
> "Peter" <Peter@discussions.microsoft.com> wrote in message
> news:7E81F6F7-3CD1-4FD5-A8B8-4FC2BD410AFE@microsoft.com...
>> In case of I've got a file larger than 4GByte can I map the entire file
>> into
>> my address space in 64bit Windows?
>> MapViewOfFile() supports only a DWORD argument for the mapping size but
>> this
>> can be left zero to indicate that one wants to map the entire file.
>> Does this work for files larger than 4GByte?
>
>