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

# UnmapAndCloseFile(3w)

## NAME

**UnmapAndCloseFile** (SETUPAPI.@)

## SYNOPSIS

BOOL UnmapAndCloseFile\
  (\
   HANDLE *hFile*,\
   HANDLE *hMapping*,\
   LPVOID *lpBuffer*\
  )

## DESCRIPTION

Unmap and close a mapped file.

## PARAMS

*hFile* **\[In\]**  Handle to the file.

*hMapping* **\[In\]**  Handle to the file mapping.

*lpBuffer* **\[In\]**  Pointer to the file buffer.

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE**

## IMPLEMENTATION

Declared in **"setupapi.h"**.

Implemented in **"dlls/setupapi/misc.c"**.

Debug channel **"setupapi"**.
