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

# ImageDirectoryEntryToDataEx(3w)

## NAME

**ImageDirectoryEntryToDataEx** (DBGHELP.@)

## SYNOPSIS

PVOID ImageDirectoryEntryToDataEx\
  (\
   PVOID                  *base*,\
   BOOLEAN                *image*,\
   USHORT                 *dir*,\
   PULONG                 *size*,\
   PIMAGE\_SECTION\_HEADER\* *section*\
  )

## DESCRIPTION

Search for specified directory in **PE** *image*.

## PARAMS

*base* **\[In\]**  Image *base* address.

*image* **\[In\]**  **TRUE** **-** *image* has been loaded by loader, **FALSE** **-** raw file *image*.

*dir* **\[In\]**  Target directory index.

*size* **\[Out\]**  Receives directory *size*.

*section* **\[Out\]**  Receives pointer to *section* header of *section* containing directory data.

## RETURNS

**Success:** pointer to directory data

**Failure:** **NULL**

## IMPLEMENTATION

Declared in **"dbghelp.h"**.

Implemented in **"dlls/dbghelp/pe\_module.c"**.

Debug channel **"dbghelp"**.
