###User Defined Function###
_WinAPI_MapViewOfFile

###Description###
Maps a view of a file mapping into the address space of a calling process.

###Syntax###
#include <WinAPIFiles.au3>
_WinAPI_MapViewOfFile ( $hMapping [, $iOffset [, $iBytes [, $iAccess = 0x0006]]] )


###Parameters###
@@ParamTable@@
$hMapping
	Handle to a file mapping object. The _WinAPI_CreateFileMapping() and _WinAPI_OpenFileMapping()
	functions return this handle.
$iOffset
	[optional] The file offset where the view is to begin.
$iBytes
	[optional] The number of bytes of a file mapping to map to a view. All bytes must be within the maximum size
	specified by _WinAPI_CreateFileMapping(). If $iBytes is 0, the mapping extends from the specified
	offset to the end of the file mapping.
$iAccess
	[optional] The access to the file mapping object. This parameter can be one of the following values.
	$FILE_MAP_ALL_ACCESS
	$FILE_MAP_COPY
	$FILE_MAP_READ (Default)
	$FILE_MAP_WRITE (Default)

	Each of the preceding values can be combined with the following value.
	$FILE_MAP_EXECUTE
@@End@@

###ReturnValue###
@@ReturnTable@@
Success 	The starting address of the mapped view.
Failure 	0, call <a href="_WinAPI_GetLastError.htm">_WinAPI_GetLastError()</a> to get extended error information.
@@End@@


###Remarks###
For files that are larger than the address space, you can only map a small portion of the file data at one time.
When the first view is complete, then you unmap it and map a new view.


###Related###


###See Also###
@@MsdnLink@@ MapViewOfFile


###Example###
@@IncludeExample@@
