---
name: "MapViewOfFile"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/MapViewOfFile"
---

# MapViewOfFile(3w)

## NAME

**MapViewOfFile** (KERNEL32.@)

## SYNOPSIS

LPVOID MapViewOfFile\
  (\
   HANDLE *mapping*,\
   DWORD  *access*,\
   DWORD  *offset\_high*,\
   DWORD  *offset\_low*,\
   SIZE\_T *count*\
  )

## DESCRIPTION

Maps a view of a file into the address space.

## PARAMS

*mapping* **\[In\]**  File-*mapping* object to map.

*access* **\[In\]**  Access mode.

*offset\_high* **\[In\]**  High-order **32** bits of file offset.

*offset\_low* **\[In\]**  Low-order **32** bits of file offset.

*count* **\[In\]**  Number of bytes to map.

## RETURNS

**Success:** Starting address of mapped view.

**Failure:** **NULL**.

## IMPLEMENTATION

Declared in **"winbase.h"**.

Implemented in **"dlls/kernel32/virtual.c"**.
